Esempio n. 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();
        }
 // GET: Companies
 public ActionResult Index()
 {
     _companyModelService = IoCInit.GetScope().Resolve <ICompanyModelService>();
     AllCompanies         = _companyModelService.GetAllCompanies();
     return(View(AllCompanies));
 }