Пример #1
0
        //GET: /User/Details/5
        public ActionResult IndexUserForms(string pUserCode, string pApplicationCode)
        {
            MMDModel <SecurityUser, SecurityApplication, SecurityForm> vModel = new MMDModel <SecurityUser, SecurityApplication, SecurityForm>();

            vModel.Master1    = oUserBLL.GetByCode(pUserCode);
            vModel.Master2    = oApplicationBLL.GetByCode(pApplicationCode);
            vModel.DetailList = oFormBLL.GetByApplicationCode(vModel.Master2.ApplicationCode).ToList();

            if (vModel.Master1 == null || vModel.Master2 == null)
            {
                return(HttpNotFound());
            }

            return(View(vModel));
        }
Пример #2
0
        public ActionResult Edit(string pUserCode)
        {
            SecurityUser vSecurityUser = oUserBLL.GetByCode(pUserCode);

            if (vSecurityUser == null)
            {
                return(HttpNotFound());
            }

            vSecurityUser.Password       = string.Empty;
            vSecurityUser.PasswordReType = string.Empty;
            return(View(vSecurityUser));
        }