public ActionResult Edit(int id) { CompanyDetailBLL objCompanyDetailBll = new CompanyDetailBLL(); var company = objCompanyDetailBll.GetCompanyInfo(id); return(View(company)); }
public ActionResult DeleteCompany(int id) { CompanyDetailBLL objCompanyDetailBll = new CompanyDetailBLL(); objCompanyDetailBll.DeleteCompanyDetail(id); return(RedirectToAction("Index", "CompanyDetail")); }
public ActionResult Index() { CompanyDetailBLL objCompanyDetailBll = new CompanyDetailBLL(); List <CompanyDetail> CompanyList = objCompanyDetailBll.GetCompanyInfo(); return(View(CompanyList)); }
public ActionResult Edit(CompanyDetail objCompanyDetail) { CompanyDetailBLL objCompanyDetailBll = new CompanyDetailBLL(); objCompanyDetailBll.UpdateCompanyDetail(objCompanyDetail); return(RedirectToAction("Index", "CompanyDetail")); }
public ActionResult Save(CompanyDetail objCompanyDetail) { if (ModelState.IsValid) { CompanyDetailBLL objCompanyDetailBll = new CompanyDetailBLL(); objCompanyDetailBll.SaveCompanyInfo(objCompanyDetail); } return(RedirectToAction("Index", "CompanyDetail")); }