public async Task <IActionResult> GetReservations(string username) { var temp = await enterpriseService.GetReservations(username); if (temp != null) { return(Ok(temp)); } else { return(BadRequest(new { Message = "Something went wrong. Please, try again later." })); } }