Пример #1
0
        public ActionResult Index()
        {
            SummaryService s = new SummaryService();
            List <BudgetPlanCategoryDto> budgetCategories = s.GetMonthActivitiesByCategory(DateTime.Now);

            return(View("SummaryIndex", budgetCategories));
        }
Пример #2
0
        public ActionResult UpdateCategory(int activityId, int categoryId)
        {
            // need to submit the whole page
            ActivityService s  = new ActivityService();
            SummaryService  ss = new SummaryService();
            ActivityDto     a  = new ActivityDto
            {
                ActivityId = activityId,
                CategoryId = categoryId
            };

            s.SaveActivityUpdate(a);
            return(PartialView("SummaryIndex", ss.GetMonthActivitiesByCategory(DateTime.Now)));
        }