Passing multiple Parameters to WebAPI Error 404 in ASP.Net

Last Reply 6 months ago By dharmendr

Posted 6 months ago

this is the url but this is not working its giving 404 error

http://navayugaapi.thincomputers.org/api/Index/Login/S00001/123

[HttpGet]
[Route("api/Index/Login/{StudentId}/{Password}")]
public StudentLogin GetStudentDetailViaLogin(string StudentId, string Password)
{
    return db.getStudentDetailsViaLogin(StudentId, Password);
}