public override bool ValidateUser(string username, string password) { UserBs objBs = new UserBs(); int count = objBs.GetAll().Count(x => x.UserEmail.Equals(username) && x.Password.Equals(password)); return(count != 0); }
public BaseBs() { photoBs = new PhotoBs(); albumBs = new AlbumBs(); userBs = new UserBs(); likePhotoBs = new LikePhotoBs(); logMessageBs = new LogMessageBs(); }
public BaseBs() { categoryBs = new CategoryBs(); locationBs = new LocationBs(); userBs = new UserBs(); groundBs = new GroundBs(); bookingBs = new BookingBs(); }
internal void CreateUserIfDoesNotExist(string UserEmail, UserBs userBs) { if (userBs.GetAll().Where(x => x.UserEmail == UserEmail).Count() == 0) { userBs.Insert(new tbl_User() { UserEmail = UserEmail, Role = "U", Password = "******", ConfirmPassword = "******" }); } }
public virtual int GetUserId(string userName) { T_User user = UserBs.GetInstance().GetAll().FirstOrDefault(x => x.UserEmail == userName); if (user != null) { return(user.UserId); } return(-1); }
public BaseBs() { UserBs = new UserBs(); OpenActBs = new OpenActBs(); DepositBs = new DepositBs(); WithdrawalBs = new WithdrawalBs(); ChqIssueBs = new ChqIssueBs(); ChqCancellationBs = new ChqCancellationBs(); ActtypeBs = new ActtypeBs(); LoanTypeBs = new LoanTypeBs(); LoanBs = new LoanBs(); }
public override string[] GetRolesForUser(string username) { UserBs objBs = new UserBs(); return(new string[] { objBs.GetAll().Where(x => x.UserEmail.Equals(username)).FirstOrDefault().Role }); }
public AdminBs() { categoryBs = new CategoryBs(); userBs = new UserBs(); urlBs = new UrlBs(); }
public BaseBs() { categoryBs = new CategoryBs(); userBs = new UserBs(); urlBs = new UrlBs(); }
public SecurityBs() { categoryBs = new CategoryBs(); urlBs = new UrlBs(); userBs = new UserBs(); }
public UserAreaBs() { categoryBs = new CategoryBs(); urlBs = new UrlBs(); userBs = new UserBs(); }
public BaseBs() { userBs = new UserBs(); securityBs = new SecurityBs(); adminBs = new AdminBs(); }
public CommonBs() { categoryBs = new CategoryBs(); urlBs = new UrlBs(); userBs = new UserBs(); }