// // GET: /AcGroup/Details/5 public ActionResult Details(int id = 0) { AcGroup acgroup = objSourceMastersModel.GetAcGroupById(id); if (acgroup == null) { return(HttpNotFound()); } return(View(acgroup)); }
public ActionResult Edit(AcGroup acgroup) { if (ModelState.IsValid) { objSourceMastersModel.SaveAcGroupsById(acgroup); ViewBag.SuccessMsg = "You have successfully updated Job."; return(View("Index", objSourceMastersModel.GetAllAcGroup())); } return(View(acgroup)); }
public ActionResult Create(AcGroup acgroup) { if (ModelState.IsValid) { objSourceMastersModel.SaveAcGroups(acgroup); ViewBag.SuccessMsg = "You have successfully added Job."; return(View("Index", objSourceMastersModel.GetAllAcGroup())); } ViewBag.Company = DropDownList <AcCompany> .LoadItems( objSourceMastersModel.GetAllAcCompanies(), "AcCompanyID", "AcCompany1"); return(View(acgroup)); }
// // GET: /AcGroup/Edit/5 public ActionResult Edit(int id = 0) { AcGroup acgroup = objSourceMastersModel.GetAcGroupById(id); if (acgroup == null) { return(HttpNotFound()); } ViewBag.Company = new SelectList(objSourceMastersModel.GetBranchMasters(Convert.ToInt32(Session["AcCompanyID"].ToString())), "BranchID", "BranchName", acgroup.AcBranchID); return(View(acgroup)); }