public IActionResult GetCompanies( [FromQuery] int?summerJobs, [FromQuery] string businessType = null, [FromQuery] string specialistArea = null, [FromQuery] int minSize = 0, [FromQuery] int maxSize = 0, [FromQuery] string search = null) { try { return(Ok(_companiesRepository.GetCompaniesList(summerJobs, businessType, specialistArea, minSize, maxSize, search))); } catch { return(BadRequest()); } }