Пример #1
0
        public Form UserSchedule(string userID)
        {
            scheduleForm.Clear();
            var events = _appDbContext.ScheduledEvent
                         .Where(e => e.ScheduleUser == userID).ToList(); // .Include(L => L.Location)

            events.ForEach(e => e.ToRecord(scheduleForm));
            scheduleForm.RecordCount = events.Count;
            scheduleForm.AddForm(_locations.UserLocations(userID));
            return(scheduleForm);
        }