Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public BaseBs()
 {
     photoBs      = new PhotoBs();
     albumBs      = new AlbumBs();
     userBs       = new UserBs();
     likePhotoBs  = new LikePhotoBs();
     logMessageBs = new LogMessageBs();
 }
Exemplo n.º 3
0
 public BaseBs()
 {
     categoryBs = new CategoryBs();
     locationBs = new LocationBs();
     userBs     = new UserBs();
     groundBs   = new GroundBs();
     bookingBs  = new BookingBs();
 }
Exemplo n.º 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 = "******"
         });
     }
 }
Exemplo n.º 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);
        }
Exemplo n.º 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();
 }
Exemplo n.º 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 });
        }
Exemplo n.º 8
0
 public AdminBs()
 {
     categoryBs = new CategoryBs();
     userBs     = new UserBs();
     urlBs      = new UrlBs();
 }
Exemplo n.º 9
0
 public BaseBs()
 {
     categoryBs = new CategoryBs();
     userBs     = new UserBs();
     urlBs      = new UrlBs();
 }
Exemplo n.º 10
0
 public SecurityBs()
 {
     categoryBs = new CategoryBs();
     urlBs      = new UrlBs();
     userBs     = new UserBs();
 }
Exemplo n.º 11
0
 public BaseBs()
 {
     categoryBs = new CategoryBs();
     userBs = new UserBs();
     urlBs = new UrlBs();
 }
Exemplo n.º 12
0
 public UserAreaBs()
 {
     categoryBs = new CategoryBs();
     urlBs      = new UrlBs();
     userBs     = new UserBs();
 }
Exemplo n.º 13
0
 public BaseBs()
 {
     userBs     = new UserBs();
     securityBs = new SecurityBs();
     adminBs    = new AdminBs();
 }
Exemplo n.º 14
0
 public CommonBs()
 {
     categoryBs = new CategoryBs();
     urlBs      = new UrlBs();
     userBs     = new UserBs();
 }
Exemplo n.º 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 = "******" });
     }
 }