public WebApiResult <bool> UpdateSystemGroup([FromBody] OapSystemGroup group)
        {
            if (group == null)
            {
                var result = new WebApiResult <bool>();
                result.SetError($"Argument {{group}} is null");
            }

            return(TryCatch <UpdateSystemGroupRequest, bool>(new UpdateSystemGroupRequest(group)));
        }
 public WebApiResult <OapSystemGroup> AddSystemGroup([FromBody] OapSystemGroup list)
 {
     return(TryCatch <AddSystemGroupRequest, OapSystemGroup>(new AddSystemGroupRequest(list)));
 }
示例#3
0
 public UpdateSystemGroupRequest(OapSystemGroup systemGroup)
 {
     SystemGroup = systemGroup;
 }