Example #1
0
        public ActionResult SavePIN(int InvestorId, string newPIN)
        {
            InvestorAccountBLL ab       = new InvestorAccountBLL();
            InvestorAccounts   investor = FiiiPayDB.InvestorAccountDb.GetById(InvestorId);

            investor.PIN = PasswordHasher.HashPassword(newPIN);
            return(Json(ab.UpdatePIN(investor, UserId, UserName).toJson()));
        }
Example #2
0
        private SaveResult SaveCreate(InvestorAccounts oInvestor)
        {
            InvestorAccountBLL ab = new InvestorAccountBLL();

            oInvestor.RegistrationDate = DateTime.UtcNow;
            oInvestor.PIN      = PasswordHasher.HashPassword(oInvestor.PIN);
            oInvestor.Password = PasswordHasher.HashPassword(oInvestor.Password);
            oInvestor.Balance  = 0;
            return(ab.Create(oInvestor, UserId, UserName));
        }
Example #3
0
        private SaveResult SaveEdit(InvestorAccounts oInvestor)
        {
            InvestorAccountBLL ab = new InvestorAccountBLL();

            return(ab.Update(oInvestor, UserId, UserName));
        }