Passing multiple Parameters to WebAPI Error 404 in ASP.Net

Last Reply one month ago By dharmendr

Posted one month 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);
}