예제 #1
0
 public ActionResult UserInfoEdit(object id, int actiontype = 0)
 {
     ViewData[EditFlag] = true;
     if (actiontype == 1)
     {
         return(View(new UserInfoModel()));
     }
     else
     {
         UserInfoModel model = UserInfoModel.SingleOrDefault(id);
         return(View(model));
     }
 }