Example #1
0
        //
        // GET: /AcGroup/Details/5

        public ActionResult Details(int id = 0)
        {
            AcGroup acgroup = objSourceMastersModel.GetAcGroupById(id);

            if (acgroup == null)
            {
                return(HttpNotFound());
            }
            return(View(acgroup));
        }
Example #2
0
 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));
 }
Example #3
0
        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));
        }
Example #4
0
        //
        // 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));
        }