Exemplo n.º 1
0
 public JsonResult UnlockAccount(string pass)
 {
     var response = new ResponseModel<LoginResponse>();
     var headers = new HeaderManager(Request);
     M2ESession session = TokenManager.getSessionInfo(headers.AuthToken, headers);
     var isValidToken = TokenManager.IsValidSession(headers.AuthToken);
     response = new AuthService().unlockAccountService(headers, session,EncryptionClass.Md5Hash(pass));
     return Json(response);
 }
Exemplo n.º 2
0
 public JsonResult LockUserAccount()
 {
     var response = new ResponseModel<LoginResponse>();
     var headers = new HeaderManager(Request);
     M2ESession session = TokenManager.getSessionInfo(headers.AuthToken, headers);
     var isValidToken = TokenManager.IsValidSession(headers.AuthToken);
     response = new AuthService().LockAccountService(headers, session);
     return Json(response);
 }
Exemplo n.º 3
0
        public JsonResult ContactUs(ContactUsRequest req)
        {            

            var contactUsService = new AuthService();
            var response = contactUsService.ContactUsService(req);
            return Json(response);
        }