コード例 #1
0
        public ActionResult DeletingCompany(long id)
        {
            CompanyRepository companyRepository = new CompanyRepository();

            MallOfElectronics.Models.DataBase.Company company = new Models.DataBase.Company();
            company = companyRepository.Find(id);
            return(View(company));
        }
コード例 #2
0
        public ActionResult EditingCompany(long id)
        {
            MallOfElectronics.Models.DataBase.Company company = new Models.DataBase.Company();
            CompanyRepository companyRepository = new CompanyRepository();

            company = companyRepository.Find(id);
            TempData["prviousCompany"] = company;
            return(View(company));
        }