예제 #1
0
        public ActionResult CreateOrUpdate(Organization org)
        {
            org.Initialize();

            var rsp = this.OrganizationService.CreateOrUpdate(org);

            return rsp.IsSuccess ? this.CloseDialogWithAlert("保存成功!") : this.Alert("保存失败,失败原因:" + rsp.ErrorMessage, AlertType.Error);
        }