private Show ( ) : System.Web.Mvc.ActionResult | ||
Результат | System.Web.Mvc.ActionResult |
public ActionResult Show()
{
var user = _repository.GetAll<User>().SingleOrDefault(x => x.Username == User.Identity.Name);
if (user == null)
{
throw new HttpException(404, "Not found");
}
return View(user);
}
}