Exemple #1
0
        public ActionResult Action(int?id)
        {
            StaffActionsViewModel staffActionsVM = new StaffActionsViewModel();

            if (id == null)
            {
                staffActionsVM.IsStaffSelected = false;
                ViewBag.selectStaffError       = "Choose a staff member to work with below";
                return(RedirectToAction("Index"));
            }

            staffActionsVM.StaffSelected   = db.Staffs.Find(id);
            staffActionsVM.IsStaffSelected = true;
            //StaffEducationAction(staffActionsVM);

            return(View(staffActionsVM));
        }
Exemple #2
0
        public ActionResult StaffExitAction(StaffActionsViewModel staffActionsVM)
        {
            ViewBag.Exit_Reason_ID = new SelectList(db.Adm_Exit_Reasons, "ID", "Exit_Reason", null);

            return(PartialView("_StaffExitAction", staffActionsVM));
        }