Example #1
0
 public ActionResult Edit([Bind(Include = "Id,UserTypeId,UserTypeName,Archived,DateLastUpdated,UserLastUpdated,DateCreated,UserCreated")] UserType userType)
 {
     if (ModelState.IsValid)
     {
         service.EditUserType(userType, db);
         return(RedirectToAction("Index"));
     }
     return(View(userType));
 }
Example #2
0
 public ActionResult EditUserType(UserType uType)
 {
     uTypeService.EditUserType(uType);
     return(RedirectToAction("UserTypes", "User"));
 }