public IActionResult GetById(int id) { var result = _carBrandService.GetById(id); if (result.Success) { return(Ok(result)); } return(BadRequest()); }
public IActionResult GetById(int Id) { var result = _carBrandService.GetById(Id); if (result.Success) { return(Ok(result.Data)); } return(BadRequest(result.Message)); }