예제 #1
0
        public void AddCompanies(GtMetrics metric)
        {
            if (_CompanyRepo.GetAll().Count() > 0)
            {
                return;
            }
            Company initial = new Company
            {
                Id                      = 1,
                BusinessType            = "Agriculture Equipment",
                City                    = "Grapevine",
                CompanyName             = "Kubota Tractor",
                ConfirmedVersionDate    = new DateTime(2019, 9, 21),
                Contacted               = false,
                Country                 = "United States",
                EndEnterpriseSupport    = null,
                GtMetricsId             = 1,
                GtMetrics               = metric,
                Notes                   = string.Empty,
                PreviousVersion         = null,
                RankingScale            = 1,
                SfVersion               = 11.1,
                SitefinityRetirmentDate = null,
                State_Region            = "Texas",
                Street                  = "1000 Kubota Drive",
                Url                     = "kubotausa.com",
                ZipCode                 = "76051"
            };

            _CompanyRepo.Add(initial);
        }
 public IEnumerable <Company> GetAll()
 {
     return(_repo.GetAll().AsEnumerable());
 }
예제 #3
0
        public IEnumerable <Company> GetAll()
        {
            var companies = _companyRepo.GetAll();

            return(companies);
        }
예제 #4
0
 public IEnumerable <CompanyDTO> GetCompany()
 {
     return(_companyRepo.GetAll());
 }