Exemple #1
0
        public IActionResult GetDetails()
        {
            var result = _rentalsService.GetRentalDetails();

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }
Exemple #2
0
        public IActionResult GetRentalDetails()
        {
            Thread.Sleep(3000);
            var result = _rentalsService.GetRentalDetails();

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