public string CreateTaskInOutlook(TaskEntity taskEntity) { Trace.TraceInformation("Create task in outlook"); if (!InitializeHelpers()) { return("Initialize helpers fail"); } string newOwnerMail = crmHelper.GetUserMailByGuid(taskEntity.NewTaskOwnerId); taskEntity.OutlookId = exchangeHelper.CreateNewOutlookTask(taskEntity, newOwnerMail); crmHelper.UpdateCrmTask(taskEntity); return(JsonConvert.SerializeObject(taskEntity.OutlookId)); }