Пример #1
0
 // GET: User
 public ActionResult ResetPassword(int id)
 {
     if (Session["UserID"] != null)
     {
         TittleUserServices service = new TittleUserServices();
         CustomResetUser    model   = service.GetUserDetail(id);
         return(PartialView("ResetPassword", model));
     }
     return(null);
 }
Пример #2
0
        public ActionResult UserActive(CustomResetUser model)
        {
            if (Session["UserID"] != null)
            {
                TittleUserServices service = new TittleUserServices();
                service.ChangeUserActiveStatus(model);

                return(Json(new
                {
                    message = "success"
                }));
            }
            return(Json(new
            {
                message = "error"
            }));
        }