public IActionResult GetDetails() { var result = _rentalsService.GetRentalDetails(); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }
public IActionResult GetRentalDetails() { Thread.Sleep(3000); var result = _rentalsService.GetRentalDetails(); if (result.Success) { return(Ok(result)); } return(BadRequest(result.Message)); }