Exemplo n.º 1
0
        public virtual IHttpActionResult Find([FromUri] SysRoleFindRequest request)
        {
            var result = _sysRoleService.Find(request.Id);

            if (result == null)
            {
                return(Fail("抱歉,没查到数据"));
            }
            return(Succeed(new SysRoleFindResponse
            {
                Id = result.Id
            }));
        }