Пример #1
0
        public ActionResult UserChangePassword(Saleschangepwd Model)
        {
            var sessionvalue = Session["User"].ToString();

            Model.UserName = sessionvalue;
            int Result = _pro.salesLogin(Model);

            if (Result == 1)
            {
                ViewBag.Error = "Password Changed Successfully";
            }
            else
            {
                ViewBag.Error = "Invalid details Please check";
            }
            return(View());
        }
Пример #2
0
 public ActionResult ChangePassword(Saleschangepwd Model)
 {
     if (Model.newpwd != Model.cnfrmpwd)
     {
         ViewBag.Error = "New Passworrd & Confirm Password donot match.";
     }
     else
     {
         var sessionvalue = Session["Sales_Auth_Session"].ToString();
         Model.UserName = sessionvalue;
         int Result = _prov.salesLogin(Model);
         if (Result == 1)
         {
             ViewBag.Error = "Password Changed Successfully";
         }
         else
         {
             ViewBag.Error = "Invalid details Please check";
         }
     }
     return(View());
 }
Пример #3
0
        public ActionResult ChangePassword(Saleschangepwd model)
        {
            if (model.newpwd != model.cnfrmpwd)
            {
                ViewBag.Error = "New Passworrd & Confirm Password donot match.";
            }
            else
            {
                var AdminSession = Session["AdminUser"].ToString();

                int i = 0;
                model.Email = AdminSession;
                i           = _prov.ChangePasswordAdmin(model);
                if (i > 0)
                {
                    ViewBag.Error = "Successfully Your password changed";
                }
                else
                {
                    ViewBag.Error = "Your Password Is Not Changed plese Try Again";
                }
            }
            return(View());
        }
Пример #4
0
 public int salesLogin(Saleschangepwd Model)
 {
     return(_Ser.salesLogin(Model));
 }
Пример #5
0
 public int ChangePasswordAdmin(Saleschangepwd Model)
 {
     return(_Ser.ChangePasswordAdmin(Model));
 }