Esempio n. 1
0
        public async Task <IEnumerable <TModel> > GetList()
        {
            var x = await _context.Set <TEntity>().AsNoTracking().ToListAsync();

            return(_mapper.MapListTo <TModel, TEntity>(x));
        }
Esempio n. 2
0
 public ActionResult <AppointmentViewModel> GetAppointmentsByDate(int year, int month, int date) =>
 Ok(_mapper.MapListTo <AppointmentViewModel, AppointmentModel>(_appointmentService.GetByDate(year, month, date)));