public string CreateAppointmentInCrm(Outlook outlookId) { Trace.TraceInformation("CreateAppointmentInCrm"); if (!InitializeHelpers()) { return("Initialize helpers fail"); } if (crmHelper.GetCrmIdByOutlookId(new AppointmentEntity { OutlookId = outlookId.outlookId }) != Guid.Empty) { Trace.TraceInformation("CreateAppointmentInCrm: appointmtnt exist"); return("Appointment is exist"); } AppointmentEntity outlookAppointment = exchangeHelper.GetAppointmentFromOutlook(outlookId.outlookId); Guid result = crmHelper.CreateCrmAppointment(outlookAppointment); return(result.ToString()); }