public IActionResult GetAll()
        {
            var result = _powerService.GetAll();

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }
示例#2
0
 public IActionResult GetAll()
 {
     return(Ok(_powerService.GetAll()));
 }