示例#1
0
        public IActionResult GetAll()
        {
            var result = _rentalsService.GetAll();

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }
        public IActionResult GetAll()
        {
            Thread.Sleep(3);
            var result = _rentalService.GetAll();

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }
示例#3
0
        public IActionResult Get()
        {
            var result = _rentalService.GetAll();

            return(Ok(result));
        }