示例#1
0
        public IActionResult GetAllCorrida()
        {
            string response = string.Empty;
            var    corridas = _bikeService.GetAllCorrida(ref response);

            if (corridas == null)
            {
                return(BadRequest(new
                {
                    status = "Failed",
                    message = response
                }));
            }
            return(Ok(new
            {
                status = response,
                corridas
            }));
        }