public static bool KhoiPhucLoaiTopping(int maLoaiTopping) { if (LoaiToppingDAO.KhoiPhucLoaiTopping(maLoaiTopping)) { return(ToppingDAO.KhoiPhucToppingTheoLoai(maLoaiTopping)); } return(false); }
public static Topping ToppingDAO_Topping(ToppingDAO t) { var topping = new Topping(); topping.ToppingID = t.ID; topping.Name = t.Name; return(topping); }
public static ToppingDAO Topping_ToppingDAO(Topping t) { var topping = new ToppingDAO(); topping.ID = t.ToppingID; topping.Name = t.Name; return(topping); }
public static Topping MapToTopping(ToppingDAO topping) { var t = new Topping(); t.ToppingId = topping.Id; t.ToppingName = topping.Name; t.Price = topping.Price; return(t); }
public static bool KhoiPhucTopping(int maTopping) { return(ToppingDAO.KhoiPhucTopping(maTopping)); }
public static int LayMaToppingMoiNhat() { return(ToppingDAO.LayMaToppingMoiNhat()); }
public static bool ThemTopping(ToppingDTO topping) { return(ToppingDAO.ThemTopping(topping)); }
public static bool XoaTopping(int maTopping) { return(ToppingDAO.XoaTopping(maTopping)); }
public static bool SuaTopping(ToppingDTO topping) { return(ToppingDAO.SuaTopping(topping)); }
public static bool XoaToppingTheoLoai(int maLoaiTopping) { return(ToppingDAO.XoaToppingTheoLoai(maLoaiTopping)); }
public static int LaySoLuongToppingTheoLoai(int maLoaiMon) { return(ToppingDAO.LaySoLuongToppingTheoLoai(maLoaiMon)); }
public static List <ToppingDTO> LayDanhSachTopping(int maLoaiTopping = 0, string timkiem = "", bool trangThai = true) { return(ToppingDAO.LayDanhSachTopping(maLoaiTopping, timkiem, trangThai)); }