Esempio n. 1
0
        public async Task <ActionResult> Taken([FromQuery] string searchText)
        {
            try
            {
                var result = await _placeService.GetIsTakenAsync(searchText);

                return(Ok(result));
            }
            catch (InvalidOperationException e)
            {
                return(BadRequest(e.Message));
            }
            catch (Exception e)
            {
                return(BadRequest("Hiba történt: " + e.Message));
            }
        }