public bool UpdateDonHang(DON_HANG model) { try { var dh = context.DON_HANG.Find(model.MA_DH); dh.MA_LT = model.MA_LT; dh.EMAIL_DH = model.EMAIL_DH; dh.SOLUONGVE = model.SOLUONGVE; dh.TONG = model.TONG; dh.TRANG_THAI = model.TRANG_THAI; dh.EMAIL_NV = model.EMAIL_NV; context.SaveChanges(); return(true); } catch (Exception ex) { return(false); } }
public int AddThanhToan(THANH_TOAN model) { context.THANH_TOAN.Add(model); context.SaveChanges(); return(model.MA_TT); }
public String AddTuyenDuong(TUYEN_DUONG model) { context.TUYEN_DUONG.Add(model); context.SaveChanges(); return(model.MS_TUYEN); }
public String AddNhanVien(NHAN_VIEN model) { context.NHAN_VIEN.Add(model); context.SaveChanges(); return(model.EMAIL_NV); }
public String AddKhachHang(KHACH_HANG model) { context.KHACH_HANG.Add(model); context.SaveChanges(); return(model.EMAIL_KH); }
public String AddXeKhach(XE_KHACH model) { context.XE_KHACH.Add(model); context.SaveChanges(); return(model.MA_BSX); }
public int AddLoTrinh(LO_TRINH model) { context.LO_TRINH.Add(model); context.SaveChanges(); return(model.MA_LT); }