// 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 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); } }
// 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); } }