public async Task <IActionResult> GetMotoristaParada() { try { var motoristas = await motoristaRepository.GetMotoristaParada(); if (motoristas == null) { return(NotFound()); } return(Ok(motoristas)); } catch (Exception) { return(BadRequest()); } }
public async Task <IActionResult> GetMotoristaParada() { try { var motoristas = await motoristaRepository.GetMotoristaParada(); if (motoristas == null) { return(NotFound()); } return(Ok(motoristas)); } catch (Exception) { return(BadRequest()); } }