Beispiel #1
0
 public ActionResult Profile(string userName)
 {
     ViewBag.IsAdmin      = IsAdmin();
     ViewBag.IsSuperAdmin = IsSuperAdmin();
     Entities.User user = _logic.GetUserByLogin(userName);
     if (user != null)
     {
         ViewBag.Time = _flogic.GetUserTime(user.Id);
         return(View(_logic.GetUser(user.Id)));
     }
     else
     {
         return(new HttpStatusCodeResult(404, "User Not Found"));
     }
 }
Beispiel #2
0
 public ActionResult UserInfo(int id)
 {
     ViewBag.Time = _logic.GetUserTime(id);
     return(PartialView("_UserInfoPartial", _logic.GetUser(id)));
 }