// Return all user calendar entries. public List <CalEntry> GetAllUserEntries(string id, DateTime start, DateTime end) { return(_mapper.Map <List <CalEntry> >( _context.CalendarEntries.AsNoTracking().Where(x => x.UserId == id && x.DateFrom >= start && x.DateTo <= end) )); }
// Get all themes. public List <ThemeModel> GetThemes() { return(_mapper.Map <List <ThemeModel> >( _context.Themes.AsNoTracking() )); }