コード例 #1
0
        public string CreateAppeal(AppealEntity appealEntity)
        {
            var crmGuid = string.Empty;

            try
            {
                var crmHelper = new CrmHelper(crmUri, crmUser, crmPass);
                crmGuid = crmHelper.CreateAppeal(appealEntity);
            }
            catch (Exception e)
            {
                return(JsonConvert.SerializeObject(new { code = "500", message = "error", details = e.Message }));
            }

            return(JsonConvert.SerializeObject(new { code = "200", message = "ok", guid = crmGuid }));
        }