Esempio n. 1
0
        public ListDayDetailVm GetAllDaysForUserForList(string userId)
        {
            var days    = _dayRepo.GetAllDays().Where(d => d.UserId == userId).ProjectTo <DayDetailVm>(_mapper.ConfigurationProvider).ToList();
            var dayList = new ListDayDetailVm()
            {
                Days  = days,
                Count = days.Count
            };

            return(dayList);
        }
Esempio n. 2
0
        public ListDayDetailVm GetAllDaysForList()
        {
            var days = _dayRepo.GetAllDays().ProjectTo <DayDetailVm>(_mapper.ConfigurationProvider).ToList();

            var dayList = new ListDayDetailVm()
            {
                Days  = days,
                Count = days.Count()
            };

            return(dayList);
        }