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

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