public IActionResult GetCompany(Guid id) { Company company = _companyLogic.GetCompanyById(id); if (company == null) { return(BadRequest("Error")); } return(Ok(company)); }