示例#1
0
        public void DeleteUser(int id)
        {
            DB.User user = FindUser(id);
            if (user == null)
            {
                return;
            }

            user.Delete(id);
        }
示例#2
0
 public ActionResult EditProfile(int id)
 {
     DB.User user = DB.User.Get(int.Parse(UserID));
     return(View(user));
 }
示例#3
0
 public ActionResult ProfileInfo()
 {
     DB.User user = DB.User.Get(int.Parse(UserID));
     return(View(user));
 }