Example #1
0
        public ActionResult ChangePassword(string CurrentPassword, string NewPassword)
        {
            PLog.Info("BEGIN::Controller > Home, Method > ChangePasswordView(string CurrentPassword, string NewPassword)");
            long ret = 0;

            if (!string.IsNullOrEmpty(CurrentPassword) && !string.IsNullOrEmpty(NewPassword))
            {
                try
                {
                    UsersImple         objUsersImple = new UsersImple();
                    ModelImple.LookUps _LookUps      = new ModelImple.LookUps();
                    ret = objUsersImple.ChangePassword(CurrentPassword, NewPassword, Convert.ToInt32(_LookUps.GetSessionObject("UserID")));
                }
                catch (Exception ex)
                {
                    PLog.Error("Error::Controller > Home, Method > ChangePasswordView(string CurrentPassword, string NewPassword)", ex);
                }
            }
            PLog.Info("END::Controller > Home, Method >ChangePasswordView(string CurrentPassword, string NewPassword)");
            return(Content(ret.ToString()));
        }