Esempio n. 1
0
        public ActionResult UserEdit()
        {
            EditUser_BusinessLayer       editUserListBusinessLayer = new EditUser_BusinessLayer();
            EditUser_Model_BusinessLayer editUserData_Model        = editUserListBusinessLayer.editUser_DataGet();

            ViewBag.DisplayAddUser = false;  // Displays Partial View for Edit User functionality
            return(View(editUserData_Model));
        }
Esempio n. 2
0
        public ActionResult UserEdit(EditUser_Model_BusinessLayer SelectedUserData)
        {
            Session["mssgCont"] = null;
            if (ModelState.IsValid)
            {
                string selected_userID = (SelectedUserData.USER_ID == null) ? SelectedUserData.FULLNAME : SelectedUserData.USER_ID;  // user ID is retrieved as the Value of the selected dropdownlist (FULLNAME or USER_ID)
                return(RedirectToAction("UpdateUser", new { selectedUser_ID = selected_userID }));
            }

            return(RedirectToAction("UserEdit"));        //application redisplay the interface anew since no ID or User was selected
        }