public void DeleteUser(int id) { DB.User user = FindUser(id); if (user == null) { return; } user.Delete(id); }
public ActionResult EditProfile(int id) { DB.User user = DB.User.Get(int.Parse(UserID)); return(View(user)); }
public ActionResult ProfileInfo() { DB.User user = DB.User.Get(int.Parse(UserID)); return(View(user)); }