i wonder why ASP.NET MVC 3 is throwing me an exception
The current request for action 'PreviewProfile' on controller type 'EditController' is ambiguous between the following action methods: System.Web.Mvc.ActionResult PreviewProfile() on type OSKus.Controllers.EditController System.Web.Mvc.ActionResult PreviewProfile(Int32) on type OSKus.Controllers.EditController
[HttpGet]
public ActionResult PreviewProfile()
{
return View("PreviewProfile", user.GetPerson(User.Identity.Name));
}
[HttpGet]
public ActionResult PreviewProfile(int personId)
{
if (personId == -1)
return View("PreviewProfile", user.GetPerson(User.Identity.Name));
return View("PreviewProfile", user.GetPerson(personId));
}