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

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