Ejemplo n.º 1
0
 // 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)
                ));
 }
Ejemplo n.º 2
0
 // Get all themes.
 public List <ThemeModel> GetThemes()
 {
     return(_mapper.Map <List <ThemeModel> >(
                _context.Themes.AsNoTracking()
                ));
 }