Example #1
0
        ITUser IStorageService.getUser(long nEntity)
        {
            ITUser iUser = null;
            TUser  tUser = _Sb.TUsers.FirstOrDefault(obj => obj.nEntityFK == nEntity);

            if (tUser != null)
            {
                iUser = new OTUser(tUser) as ITUser;
            }
            return(iUser);
        }
Example #2
0
        ITUser IStorageService.login(string Email, string Password)
        {
            ITUser iuser = null;
            TUser  user  = (TUser)from tuser in _Sb.TUsers
                           where tuser.sEmail == Email
                           where tuser.sPassword == Password
                           where tuser.bStatus == true
                           select tuser;

            if (user != null)
            {
                iuser = new OTUser(user) as ITUser;
            }
            return(iuser);
        }