Example #1
0
 public async Task OnGet()
 {
     (await _placeService.GetAllPlacesSelectAsync()).ToList().ForEach(x => {
         AllPlaces.Add(new SelectListItem()
         {
             Value = x.Id.ToString(), Text = x.Title
         });
     });
     (await _subjectService.GetSubjectSelects()).ToList().ForEach(x => {
         AllSubject.Add(new SelectListItem()
         {
             Value = x.Id.ToString(), Text = x.Title
         });
     });
 }