コード例 #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
ファイル: BaseBs.cs プロジェクト: MaxIurov/PhotoLibrary
 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
ファイル: UserBs.cs プロジェクト: cesaroll/LinkHub
        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
ファイル: BaseBs.cs プロジェクト: SaifAsad/urlbay
 public BaseBs()
 {
     categoryBs = new CategoryBs();
     userBs = new UserBs();
     urlBs = new UrlBs();
 }
コード例 #12
0
ファイル: UserAreaBs.cs プロジェクト: alapatik/LinkHubUrl
 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
ファイル: CommonBs.cs プロジェクト: alapatik/LinkHubUrl
 public CommonBs()
 {
     categoryBs = new CategoryBs();
     urlBs      = new UrlBs();
     userBs     = new UserBs();
 }
コード例 #15
0
ファイル: SecurityBs.cs プロジェクト: SaifAsad/urlbay
 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 = "******" });
     }
 }