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); }
//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); }