Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public ActionResult Delete([Bind(Include = "Id,Name,Description,ImageId")] AMUserType UserTObj) { int CurrentId = 0; Int32.TryParse(UserTObj.Id.ToString(), out CurrentId); if (CurrentId == 0) { return(View("Error")); } if (!DMLObj.UserTypeHasUser(CurrentId) && DMLObj.DeleteUserTypeById(CurrentId)) { return(RedirectToAction("Index", "SysAdmin")); } return(View("Error")); }