public async Task <IActionResult> GetAvailableVenues(DateTime startDate, DateTime endDate) { try { var response = await _venueService.GetAvailableVenue(startDate, endDate); if (response.ResponseCode != ResponseCode.Ok) { return(Ok(WebApiResponses <VenueModel[]> .ErrorOccured(response.Message))); } return(Ok(WebApiResponses <VenueModel[]> .Successful(response.ResponseData))); } catch (Exception ex) { Log.Error(ex); return(Ok(WebApiResponses <VenueModel[]> .ErrorOccured(ex.Message))); } }