public ActionResult EditUser(int UserID) { TempData["AccType"] = AccountTypeRepo.GetAll(); TempData["UserType"] = UserTypeRepo.GetAll(); TempData["UserStatus"] = UserStatusRepo.GetAll(); return(View(usrepo.Get(UserID))); }
public ActionResult Edit(int id) { UserInfoRepository repo = new UserInfoRepository(); UserInfoModel model = repo.Get(id); return(View("~/Views/Registration/User.cshtml", model)); }
public UserResponseBO Authenticate(UserBO userBO) { using (var db = new dbGSCasinoContext()) { UserAuthRepository userAuthRepository = new UserAuthRepository(); TblUserAuth userAuth = userAuthRepository.Get(userBO, db); UserInfoRepository userInfoRepository = new UserInfoRepository(); TblUserInfo userInfo = userInfoRepository.Get(userAuth, db); UserWalletRepository userWalletRepository = new UserWalletRepository(); List <UserWalletBO> userWallet = userWalletRepository.GetBO(userAuth, db); UserRoleRepository userRoleRepository = new UserRoleRepository(); TblUserRole userRole = userRoleRepository.Get(userAuth, db); UserResponseBO userAuthResponse = new UserResponseBO(); userAuthResponse.UserInfo = userInfo; userAuthResponse.UserWallet = userWallet; userAuthResponse.UserAuth = userAuth; userAuthResponse.UserRole = userRole; return(userAuthResponse); } }
public TblUserInfo Get(TblUserAuth userAuth) { using (var db = new dbWorldCCityContext()) { using (var transaction = db.Database.BeginTransaction()) { UserInfoRepository userInfoRepository = new UserInfoRepository(); TblUserInfo userInfo = userInfoRepository.Get(userAuth, db); return(userInfo); } } }
public TblUserInfo Get(TblUserAuth userAuth) { using (var db = new Minny_Casino_AffiliateContext()) { using (var transaction = db.Database.BeginTransaction()) { UserInfoRepository userInfoRepository = new UserInfoRepository(); TblUserInfo userInfo = userInfoRepository.Get(userAuth, db); return(userInfo); } } }
public ActionResult Login() { UserInfoRepository repo = new UserInfoRepository(); int id = int.Parse(requestWrapper.Form("Id")); string password = requestWrapper.Form("Password"); if (repo.Login(id, password)) { sessionWrapper.Set(ME, repo.Get(id)); Session.Timeout = 60; return(RedirectToAction("Menu", "Home")); } return(RedirectToAction("Index", "Home", new { ErrorMessage = "Invalid credentials. Try to login again or contact the site administrator." })); }
public UserAuthResponse Authenticate(UserBO userBO) { using (var db = new dbWorldCCityContext()) { UserAuthRepository userAuthRepository = new UserAuthRepository(); TblUserAuth userAuth = userAuthRepository.Get(userBO, db); UserInfoRepository userInfoRepository = new UserInfoRepository(); TblUserInfo userInfo = userInfoRepository.Get(userAuth, db); UserWalletRepository userWalletRepository = new UserWalletRepository(); List <UserWalletBO> userWallet = userWalletRepository.GetBO(userAuth, db); UserAuthResponse userAuthResponse = new UserAuthResponse(); userAuthResponse.UserInfo = userInfo; userAuthResponse.UserWallet = userWallet; userAuthResponse.UserAuth = userAuth; return(userAuthResponse); } }
public string Get(string uuid) { return(JsonConvert.SerializeObject(UserInfoRepository.Get(uuid))); }
public async Task <ActionResult> GetUnconfirmedUsers() { var userInfos = await UserInfoRepository.Get(); return(View(userInfos)); }