Exemple #1
0
        public ActionResult <Company> GetCompany(int id)
        {
            var result = _companyRepo.GetCompanyById(id);

            if (result == null)
            {
                return(NotFound());
            }
            return(Ok(result));
        }