Ejemplo n.º 1
0
        public ActionResult Index()
        {
            SummaryService s = new SummaryService();
            List <BudgetPlanCategoryDto> budgetCategories = s.GetMonthActivitiesByCategory(DateTime.Now);

            return(View("SummaryIndex", budgetCategories));
        }
Ejemplo n.º 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)));
        }