Пример #1
0
        public IActionResult GetCompany(string?name, int page, int pageItem)
        {
            List <CompanyViewModel> companyViewModels = _companyLogic.SearchCompanyByName(name, page, pageItem);

            if (companyViewModels == null)
            {
                return(BadRequest("Error"));
            }

            return(Ok(companyViewModels));
        }