Exemplo n.º 1
0
 public ActionResult DeleteConsumption(int consumptionId)
 {
     try
     {
         SetVievBag();
         var consumptions = dataHelper.DeleteConsumption(consumptionId, User.Identity.Name);
         return(PartialView("_Consumption", consumptions));
     }
     catch (Exception ex)
     {
         logger.ErrorMessage("305", ex);
         return(View("Error", new Error()
         {
             ExDescription = ex.Message
         }));
     }
 }