public IActionResult GetAll() { var result = _powerService.GetAll(); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }
public IActionResult GetAll() { return(Ok(_powerService.GetAll())); }