Esempio n. 1
0
        public ApiResult Edit([FromBody] RequestOrgDTO request)
        {
            OrgService orgService = new OrgService();
            string     reason;
            var        ret = orgService.Edit(request, SecurityHelper.LoginUser.ID, out reason);

            if (!ret)
            {
                return(new ApiResult()
                {
                    Status = EnumApiStatus.BizError, Msg = reason
                });
            }
            else
            {
                return(ret.ToApiResult());
            }
        }