예제 #1
0
        private void LoadCompanies()
        {
            this.FoundCompany = _companyModelService.SearchByCompanyId(27);


            this.AllCompanies = _companyModelService.GetAllCompanies();

            bsCompanies.DataSource = AllCompanies;

            dataGridView1.AutoGenerateColumns = false;
            dataGridView1.DataSource          = bsCompanies;
            dataGridView1.ClearSelection();
        }
예제 #2
0
 // GET: Companies
 public ActionResult Index()
 {
     _companyModelService = IoCInit.GetScope().Resolve <ICompanyModelService>();
     AllCompanies         = _companyModelService.GetAllCompanies();
     return(View(AllCompanies));
 }