public ActionResult MyProfile(Account Account) { if (Account.LoginResultDetails.User.ClientPersonnelID != 0) { try { Account.UpdateUser(); } catch (Exception ex) { throw ex; } } Account.GetUser(); return View(Account); }
public ActionResult MyProfile() { Account user = new Account(); try { user.GetUser(); } catch (Exception ex) { throw ex; } return View(user); }