Exemplo n.º 1
0
 public ActionResult Edit(ActionTypeModel actionType)
 {
     try
     {
         _actionTypeRepository.Edit(actionType.ToDomainModel());
     }
     catch (System.Data.Entity.Infrastructure.DbUpdateException e)
     {
         return(Redirect("/Share/Error?message" + e));
     }
     return(Redirect("~/RatingType/Edit/" + actionType.RatingTypeId.ToString()));
 }