public static int DeleteGoiMon(string _MaBan) { try { Models.GoiMonMod _goimon = new Models.GoiMonMod(_MaBan); return(_goimon.DeleteGoiMon()); } catch { return(0); } }
public static DataSet FillDataSet_getGoiMonbyID(string _MaBan) { try { Models.GoiMonMod _goimon = new Models.GoiMonMod(_MaBan); return(_goimon.FillDataSet_getGoiMonbyID()); } catch { return(null); } }
public static int UpdateGoiMon(string _MaBan, string _TenThucDon, decimal _DonGia, int _SoLuong, decimal _ThanhTien, DateTime _ThoiGian, string _GhiChu, string _TrangThai) { try { Models.GoiMonMod _goimon = new Models.GoiMonMod(_MaBan, _TenThucDon, _DonGia, _SoLuong, _ThanhTien, _ThoiGian, _GhiChu, _TrangThai); return(_goimon.UpdateGoiMon()); } catch { return(0); } }
// Method Update public static int UpdateGoiMon(string _idBan, string _TenThucDon, decimal _DonGiaTon, int _SoLuong, DateTime _ThoiGian, decimal _ThanhTien) { try { Models.GoiMonMod _goiMon = new Models.GoiMonMod(_idBan, _TenThucDon, _DonGiaTon, _SoLuong, _ThoiGian, _ThanhTien); return(_goiMon.UpdateGoiMon()); } catch { return(0); } }
public static DataSet FillDataSet_getGoiMonByIdBan(string _idBan) { try { Models.GoiMonMod gmon = new Models.GoiMonMod(_idBan); return(gmon.FillDataSet_getGoiMonByIdBan()); } catch { return(null); } }
// Xóa public static int DeleteGoiMon(string idBan) { try { Models.GoiMonMod goimon = new Models.GoiMonMod(idBan); return(goimon.DeleteGoiMon()); } catch (Exception) { return(0); } }
// cập nhật public static int UpdateGoiMon(string idBan, string tenThucDon, decimal donGiaTon, int soLuong, DateTime thoiGian, decimal thanhTien) { try { Models.GoiMonMod goimon = new Models.GoiMonMod(idBan, tenThucDon, donGiaTon, soLuong, thoiGian, thanhTien); return(goimon.UpdateGoiMon()); } catch (Exception) { return(0); } }
public static DataSet FillDataSetgetGoiMonByIdBan(string idBan) { try { Models.GoiMonMod ban = new Models.GoiMonMod(idBan); return(ban.FillDataSetgetGoiMonByIdBan()); } catch (Exception) { return(null); } }