Click here to Skip to main content
15,358,528 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,


i want two write two get method without parameter inside a Controller i am using rest principle.
if i am writing this it throws exception like Multiple actions were found that match the request

public class ManageUserController : ApiController
{
private YavunContext db = new YavunContext();
// list of all register user
// GET api/ManageUser
public IQueryable GetRegisterAllUser()
{
return db.SecurityUsers;
}
// list of all Role
//GET api/ManageUser
public IQueryable GetAllRole()
{
return db.SecurityRole;
}
}
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900