Exemple #1
0
        public DayDetailVm GetDayById(int id)
        {
            var day   = _dayRepo.GetDayById(id);
            var dayVm = _mapper.Map <DayDetailVm>(day);

            dayVm.mealList = _mealService.GenerateMealViews(dayVm.Id);
            return(dayVm);
        }