public async static void AddEmsCall(EmsCall call) { using (var db = new Database()) { db.EmsCall.Add(call); await db.SaveChangesAsync(); } }
public void callCompleted(EmsCall call) { call.CallStatus = CallStatus.Active; EmsCallRepository.AddEmsCall(call); }