public IActionResult AdminGetCompanies([FromQuery] bool?approved) { try { return(Ok(_companiesRepository.AdminGetCompanies(approved))); } catch { return(BadRequest()); } }