Ejemplo n.º 1
0
 public IConference CreateConference(long accidentId, string title)
 {
     using (var ctx = new DataContext())
     {
         var conference = new Conference
         {
             State = ConferenceState.Active,
             Title = title,
             AccidentId = accidentId
         };
         ctx.Conferences.Add(conference);
         ctx.SaveChanges();
         return conference;
     }
 }
Ejemplo n.º 2
0
 public void UpdateConference(Conference conference)
 {
     _service.UpdateConference(conference);
 }