Métodos usados con frecuencia
Métodos usados con frecuencia
Métodos usados con frecuencia
Métodos usados con frecuencia
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")); }