Пример #1
0
 public static bool Update(Phong product)
 {
     try
     {
         int rs = DataProvider.Instance.ExecuteNonQuery("Phong_Update",
             product.ID, product.MenuID, product.Name_Vn, product.Description_Vn, product.Detail_Vn, product.Name_En, product.Description_En, product.Detail_En,
             product.Name_Ru, product.Description_Ru, product.Detail_Ru,
             product.Price, product.Thumbnail, product.Image, product.PromoFront, product.Amount, product.AdultAmount, product.ChildAmount);
         return rs > 0;
     }
     catch
     {
         return false;
     }
 }
Пример #2
0
 public static bool Add(Phong product)
 {
     try
     {
         object rs = DataProvider.Instance.ExecuteNonQueryWithOutput("@ID", "Phong_Add",
             product.ID, product.MenuID, product.Name_Vn, product.Description_Vn, product.Detail_Vn, product.Name_En, product.Description_En, product.Detail_En,
             product.Name_Ru, product.Description_Ru, product.Detail_Ru,
             product.Price, product.Thumbnail, product.Image, product.PromoFront, product.Amount, product.AdultAmount, product.ChildAmount);
         return Convert.ToInt32(rs) > 0;
     }
     catch
     {
         return false;
     }
 }