public string CreateAppointmentInOutlook(AppointmentEntity appointmentEntity) { Trace.TraceInformation("CreateAppointmentInOutlook"); if (!InitializeHelpers()) { return("Initialize helpers fail"); } if (!string.IsNullOrEmpty(appointmentEntity.OutlookId)) { Trace.TraceInformation("CreateAppointmentInOutlook: appointment exist in outlook"); return(appointmentEntity.OutlookId); } appointmentEntity.OutlookId = exchangeHelper.CreateNewOutlookAppointment(appointmentEntity); //crmHelper.UpdateCrmAppointment(appointmentEntity); return(JsonConvert.SerializeObject(appointmentEntity.OutlookId)); }