예제 #1
0
        public JsonResult DeleteIncome(int incomeId)
        {
            try
            {
                if (incomeId <= 0)
                {
                    throw new ArgumentNullException("income should be non negative");
                }

                _incomeService.DeleteById(incomeId);
                return(Json(JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                _logger.Error(ex);
                throw;
            }
        }