public async Task <IEnumerable <TModel> > GetList() { var x = await _context.Set <TEntity>().AsNoTracking().ToListAsync(); return(_mapper.MapListTo <TModel, TEntity>(x)); }
public ActionResult <AppointmentViewModel> GetAppointmentsByDate(int year, int month, int date) => Ok(_mapper.MapListTo <AppointmentViewModel, AppointmentModel>(_appointmentService.GetByDate(year, month, date)));