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)); }
public IActionResult Get() { var result = _rentalService.GetAll(); return(Ok(result)); }