Ejemplo n.º 1
0
        public shMember GetMemberLogin(string MemberLogin, string Password)
        {
            shMemberService _Member = new shMemberService();

            var check = _Member.FindList().Where(x => x.MemberLogin == MemberLogin && x.Password == Password).FirstOrDefault();

            return(check);
        }
Ejemplo n.º 2
0
        public IEnumerable <shMember> DanhSachMember()
        {
            shMemberService _member = new shMemberService();

            IEnumerable <shMember> dsMember = _member.FindList();

            return(dsMember);
        }
Ejemplo n.º 3
0
        public bool CheckMemberLogin(string MemberLogin, string Password)
        {
            shMemberService _Member = new shMemberService();

            var check = _Member.FindList().Where(x => x.MemberLogin == MemberLogin && x.Password == Password).Count();

            if (check > 0)
            {
                return(true);
            }

            return(false);
        }
Ejemplo n.º 4
0
        public string MemberName(int?MemberId)
        {
            if (MemberId.HasValue)
            {
                shMemberService _member = new shMemberService();
                shMember        member  = _member.FindList().Where(x => x.MemberId == MemberId).FirstOrDefault();

                if (member != null)
                {
                    return(member.MemberName);
                }
                return(string.Empty);
            }
            return(string.Empty);
        }
Ejemplo n.º 5
0
        public shMember GetMember(string MemberLogin, string Password)
        {
            shMemberService _Member = new shMemberService();

            shMember Member = null;

            var check = _Member.FindList().Where(x => x.MemberLogin == MemberLogin && x.Password == Password);

            if (check.Count() > 0)
            {
                Member = check.FirstOrDefault();
            }

            return(Member);
        }