public IEnumerable<Reminder> GetAllForSender() { IList<Reminder> reminders; using (var myDataBaseContext = new DataBaseContext()) { reminders = myDataBaseContext.Reminders.ToList(); } return reminders; }