示例#1
0
 public ActionResult AddIncome(Income income)
 {
     try
     {
         SetVievBag();
         var incomes = dataHelper.AddIncome(income, User.Identity.Name);
         return(PartialView("_Incomes", incomes));
     }
     catch (Exception ex)
     {
         logger.ErrorMessage("305", ex);
         return(View("Error", new Error()
         {
             ExDescription = ex.Message
         }));
     }
 }