コード例 #1
0
        public async Task <IActionResult> Box([FromQuery] long roleid)
        {
            if (roleid <= 0)
            {
                return(NotFound());
            }
            var res = await _resourceService.GetBoxTreeAsync(roleid);

            return(Ok(res));
        }
コード例 #2
0
 public async Task <List <ZTree> > GetBoxTreeAsync(long roleid)
 {
     return(await _resourceService.GetBoxTreeAsync(roleid));
 }