public PhanTrang <LoaiSanPham_OBJ> GetAll(int trang, int SoBanGhi)
        {
            LoaiSanPham_BUS bus           = new LoaiSanPham_BUS();
            int             DoDaiDanhSach = 0;

            var DanhSach = bus.HienThiDanhSachLoaiSanPham();

            DoDaiDanhSach = DanhSach.Count();

            var TrangLoaiSanPham = DanhSach.OrderByDescending(x => x.MaLoaiSanPham).Skip(trang * SoBanGhi).Take(SoBanGhi);


            var PhanTrang = new PhanTrang <LoaiSanPham_OBJ>()
            {
                DanhSach = TrangLoaiSanPham,
                Trang    = trang,
                SoBanGhi = SoBanGhi,
                SoTrang  = (int)Math.Ceiling((decimal)DoDaiDanhSach / SoBanGhi)
            };

            return(PhanTrang);
        }
        // GET: api/LoaiSanPhams
        public IEnumerable <LoaiSanPham_OBJ> GetAll()
        {
            LoaiSanPham_BUS bus = new LoaiSanPham_BUS();

            return(bus.HienThiDanhSachLoaiSanPham());
        }