Beispiel #1
0
        public IActionResult GetById(int carId)
        {
            var result = _rentalManager.GetById(carId);

            if (result.IsSuccessful)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }
        public IActionResult GetById(int id)
        {
            var result = _rentalManager.GetById(id);

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