Ejemplo n.º 1
0
        public IHttpActionResult Get()
        {
            ConferenceService conferenceService = CreateConferenceService();
            var conference = conferenceService.GetConferences();

            return(Ok(conference));
        }
Ejemplo n.º 2
0
 protected override void OnInitialized()
 {
     editContext = new EditContext(Report);
     editContext.OnFieldChanged += HandleFieldChanged;
     speakers    = SpeakerService.GetSpeakers().ToImmutableArray();
     conferences = ConferenceService.GetConferences().ToImmutableArray();
     if (Report.Speakers is { })
Ejemplo n.º 3
0
        public ScientistAddsConferenceViewModel(ScientistModel selectedScientist)
        {
            SelectedScientist = selectedScientist;
            List <Conference> conferences = ConferenceService.GetConferences();

            foreach (Conference c in conferences)
            {
                Conferences.Add(new ConferenceModel(c));
            }
        }