Пример #1
0
        public List <NguoiDungContract> DocTatCa()
        {
            List <NguoiDungContract> kq = NguoiDungLogic.DocTatCa().Select(x => new NguoiDungContract {
                NguoiDungID = x.NguoiDungID, Ten = x.Ten, MatKhau = x.MatKhau, NhomNguoiDungID = x.NhomNguoiDungID
            }).ToList();

            return(kq);
        }
Пример #2
0
        //Static
        public static List <NguoiDung> DocTatCa()
        {
            var nguoiDungLogic = new NguoiDungLogic();
            var nguon          = nguoiDungLogic.DocTatCa().Select(x => new NguoiDung
            {
                ID  = x.ID,
                Ten = x.Ten,
                ChoHangKhachHang = x.ChoHangKhachHang,
                FormCoTheMo      = x.FormCoTheMo,
                HieuLuc          = x.HieuLuc
            }).ToList();

            return(nguon);
        }