Esempio n. 1
0
        public IActionResult GetCompany()
        {
            List <Company> companies = _companyLogic.GetAllCompanies().ToList();

            if (companies == null)
            {
                return(BadRequest("Error"));
            }
            if (companies.Count == 0)
            {
                return(NotFound());
            }

            return(Ok(companies));
        }