I have these both actions in my controller:
public ActionResult Admin()
{
var aux=db.UserMessages.ToList();
return View(aux);
}
public ActionResult Admin(int id)
{
var aux = db.UserMessages.ToList();
return View(aux);
}
But when I try to access "localhost/Doubt/Admin" I am getting an message saying that its ambiguous... I dont understand why is that... Because if I dont have id in the Url, it should call the first Action withouth the id parameter