I work on web API project in the dotnet core and check user mobile number exists check.
[Route("api/[controller]")]
public class UserController : Controller
{
[HttpGet]
[Route("mobile/exist/{mobile}/{id:int?}")]
public async Task<IActionResult> MobileExist(string mobile, int? id)
{
return Json(await _userService.MobileExist(mobile, id));
}
}
Request URL:
When I request above URL with the plus sign it given an error.
The Same URL without + sign it's working good.
I try with encoded + sign with %2B but it not working
How can I request with plus sign?