Ejemplo n.º 1
0
        public ActionResult AddUpdateUser(int adminUserId)
        {
            ModelAddUpdateUser model = new ModelAddUpdateUser();

            if (adminUserId > 0)
            {
                Admin_GetUser _adminUser = _IUser.Admin_GetUserOnId(adminUserId);
                model.AdminUserId = _adminUser.AdminUserId;
                model.UserName    = _adminUser.UserName;
                model.Password    = _adminUser.Password;
            }


            return(View(model));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Getting the user information based on the user id
 /// </summary>
 /// <param name="AdminUserId">Admin User auto increment number of table</param>
 /// <returns></returns>
 public Admin_GetUser Admin_GetUserOnId(int AdminUserId)
 {
     try
     {
         Admin_GetUser _returnResult = SqlHelper.QuerySP <Admin_GetUser>("Admin_GetUserOnId",
                                                                         new
         {
             AdminUserId = AdminUserId
         }).ToList().FirstOrDefault();
         return(_returnResult);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }