public static int Them(Shopping sh) { try { object rs = DataProvider.Instance.ExecuteNonQueryWithOutput("@ID", "Orders_Them", sh.ID, sh.HoTen, sh.Email, sh.DiaChi, sh.SDT, sh.YeuCauThem, sh.NgayOrder, sh.TongHoaDon, sh.TrangThai, sh.SessionID); return Convert.ToInt32(rs); } catch { return 0; } }
public static bool Sua(Shopping sh) { try { object rs = DataProvider.Instance.ExecuteNonQuery("Orders_Sua", sh.ID, sh.HoTen, sh.Email, sh.DiaChi, sh.SDT, sh.YeuCauThem, sh.NgayOrder, sh.TongHoaDon, sh.TrangThai, sh.SessionID); return Convert.ToInt32(rs) > 0; } catch { return false; } }