public IActionResult GetById(int id)
        {
            var result = _carBrandService.GetById(id);

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest());
        }
Exemple #2
0
        public IActionResult GetById(int Id)
        {
            var result = _carBrandService.GetById(Id);

            if (result.Success)
            {
                return(Ok(result.Data));
            }
            return(BadRequest(result.Message));
        }