public static bool KhoiPhucLoaiTopping(int maLoaiTopping)
 {
     if (LoaiToppingDAO.KhoiPhucLoaiTopping(maLoaiTopping))
     {
         return(ToppingDAO.KhoiPhucToppingTheoLoai(maLoaiTopping));
     }
     return(false);
 }
Пример #2
0
        public static Topping ToppingDAO_Topping(ToppingDAO t)
        {
            var topping = new Topping();

            topping.ToppingID = t.ID;
            topping.Name      = t.Name;
            return(topping);
        }
Пример #3
0
        public static ToppingDAO Topping_ToppingDAO(Topping t)
        {
            var topping = new ToppingDAO();

            topping.ID   = t.ToppingID;
            topping.Name = t.Name;
            return(topping);
        }
Пример #4
0
        public static Topping MapToTopping(ToppingDAO topping)
        {
            var t = new Topping();

            t.ToppingId   = topping.Id;
            t.ToppingName = topping.Name;
            t.Price       = topping.Price;

            return(t);
        }
Пример #5
0
 public static bool KhoiPhucTopping(int maTopping)
 {
     return(ToppingDAO.KhoiPhucTopping(maTopping));
 }
Пример #6
0
 public static int LayMaToppingMoiNhat()
 {
     return(ToppingDAO.LayMaToppingMoiNhat());
 }
Пример #7
0
 public static bool ThemTopping(ToppingDTO topping)
 {
     return(ToppingDAO.ThemTopping(topping));
 }
Пример #8
0
 public static bool XoaTopping(int maTopping)
 {
     return(ToppingDAO.XoaTopping(maTopping));
 }
Пример #9
0
 public static bool SuaTopping(ToppingDTO topping)
 {
     return(ToppingDAO.SuaTopping(topping));
 }
Пример #10
0
 public static bool XoaToppingTheoLoai(int maLoaiTopping)
 {
     return(ToppingDAO.XoaToppingTheoLoai(maLoaiTopping));
 }
Пример #11
0
 public static int LaySoLuongToppingTheoLoai(int maLoaiMon)
 {
     return(ToppingDAO.LaySoLuongToppingTheoLoai(maLoaiMon));
 }
Пример #12
0
 public static List <ToppingDTO> LayDanhSachTopping(int maLoaiTopping = 0, string timkiem = "", bool trangThai = true)
 {
     return(ToppingDAO.LayDanhSachTopping(maLoaiTopping, timkiem, trangThai));
 }