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");
            }
        }
Exemple #2
0
 public float PercentualDeUsoElevadorE()
 {
     return(fServico.percentualDeUsoElevadorE());
 }