Exemplo n.º 1
0
        public string UpdateTaskInCrm(Outlook outlook)
        {
            if (!InitializeHelpers())
            {
                return("Initialize helpers fail");
            }
            TaskEntity outlookTask = exchangeHelper.GetTaskFromOutlook(outlook.outlookId);

            outlookTask.CrmId = crmHelper.GetCrmIdByOutlookId(outlookTask);
            var    isTaskNeedupdate = crmHelper.IsTaskNeedUpdate(outlookTask);
            string result           = string.Empty;

            if (isTaskNeedupdate)
            {
                result = crmHelper.UpdateCrmTask(outlookTask);
            }
            return(result);
        }