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)); }
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)); }