Example #1
0
        public virtual IActionResult FindVenues([FromBody] Search query)
        {
            var result = _venueRepository.FindVenues(query.Searchstring);

            if (result == null)
            {
                return(BadRequest());
            }
            return(new ObjectResult(result));
        }