public async Task <ActionResult <float> > percentualDeUsoElevadorE() { try { var result = await _elevadorService.percentualDeUsoElevadorE(); return(Ok(result)); } catch (Exception ex) { return(StatusCode(500, ex.Message)); // return StatusCode(500, "Internal server error"); } }
public float PercentualDeUsoElevadorE() { return(fServico.percentualDeUsoElevadorE()); }