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())); }
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)); }
private SaveResult SaveEdit(InvestorAccounts oInvestor) { InvestorAccountBLL ab = new InvestorAccountBLL(); return(ab.Update(oInvestor, UserId, UserName)); }