Exemplo n.º 1
0
        public async Task <ActionResult <List <GetEventListModel> > > SearchForEvent(EventSearchFilter eventSearchFilter)
        {
            var validationResult = _eventValidation.ValidateSearchForEvent(eventSearchFilter);

            if (!validationResult.ValidationResult)
            {
                return(BadRequest(validationResult.ValidationMessage));
            }
            return(await _eventLogic.SearchForEvent(eventSearchFilter));
        }