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); }
public ListDayDetailVm GetAllDaysForList() { var days = _dayRepo.GetAllDays().ProjectTo <DayDetailVm>(_mapper.ConfigurationProvider).ToList(); var dayList = new ListDayDetailVm() { Days = days, Count = days.Count() }; return(dayList); }