// Method Add public static int InSertGoiMon(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.InsertGoiMon()); } catch { return(0); } }
public static int InsertGoiMon(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.InsertGoiMon()); } catch { return(0); } }
// Thêm public static int IntsertGoiMon(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.InsertGoiMon()); } catch (Exception) { return(0); } }