public IActionResult GetCompany() { List <Company> companies = _companyLogic.GetAllCompanies().ToList(); if (companies == null) { return(BadRequest("Error")); } if (companies.Count == 0) { return(NotFound()); } return(Ok(companies)); }
public IActionResult GetCompany() { List <Company> companies = _companyLogic.GetAllCompanies().ToList(); if (companies == null) { return(BadRequest("Error")); } if (companies.Count == 0) { return(NotFound()); } return(Ok(companies)); }