Exemple #1
0
        public async Task <IActionResult> GetByFilter(string s = null, CompanyCategory?companyCategory = null, string countryId = null, string cityId = null)
        {
            var companies = await _userCompanyService.GetByFiltersAsync(s, companyCategory, countryId, cityId);

            return(Ok(_mapper.Map <IEnumerable <Company>, IEnumerable <CompanyDto> >(companies)));
        }