Пример #1
0
        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);
        }
Пример #2
0
 public BaseBs()
 {
     photoBs      = new PhotoBs();
     albumBs      = new AlbumBs();
     userBs       = new UserBs();
     likePhotoBs  = new LikePhotoBs();
     logMessageBs = new LogMessageBs();
 }
Пример #3
0
 public BaseBs()
 {
     categoryBs = new CategoryBs();
     locationBs = new LocationBs();
     userBs     = new UserBs();
     groundBs   = new GroundBs();
     bookingBs  = new BookingBs();
 }
Пример #4
0
 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 = "******"
         });
     }
 }
Пример #5
0
        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);
        }
Пример #6
0
 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();
 }
Пример #7
0
        public override string[] GetRolesForUser(string username)
        {
            UserBs objBs = new UserBs();

            return(new string[] { objBs.GetAll().Where(x => x.UserEmail.Equals(username)).FirstOrDefault().Role });
        }
Пример #8
0
 public AdminBs()
 {
     categoryBs = new CategoryBs();
     userBs     = new UserBs();
     urlBs      = new UrlBs();
 }
Пример #9
0
 public BaseBs()
 {
     categoryBs = new CategoryBs();
     userBs     = new UserBs();
     urlBs      = new UrlBs();
 }
Пример #10
0
 public SecurityBs()
 {
     categoryBs = new CategoryBs();
     urlBs      = new UrlBs();
     userBs     = new UserBs();
 }
Пример #11
0
 public BaseBs()
 {
     categoryBs = new CategoryBs();
     userBs = new UserBs();
     urlBs = new UrlBs();
 }
Пример #12
0
 public UserAreaBs()
 {
     categoryBs = new CategoryBs();
     urlBs      = new UrlBs();
     userBs     = new UserBs();
 }
Пример #13
0
 public BaseBs()
 {
     userBs     = new UserBs();
     securityBs = new SecurityBs();
     adminBs    = new AdminBs();
 }
Пример #14
0
 public CommonBs()
 {
     categoryBs = new CategoryBs();
     urlBs      = new UrlBs();
     userBs     = new UserBs();
 }
Пример #15
0
 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 = "******" });
     }
 }