-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIptal.cs
34 lines (33 loc) · 1.14 KB
/
Iptal.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
namespace TatilRez
{
public class Iptal
{
public void RezIptal(int Id)
{
SqlCommand komut = new SqlCommand("DELETE FROM tblRezBilgileri WHERE RezId=@RezId", Datacon.baglanti());
komut.Parameters.AddWithValue("@RezId", Id);
komut.ExecuteNonQuery();
Datacon.baglanti().Close();
}
public void UlasimIptal(int Id)
{
SqlCommand komut = new SqlCommand("Update tblRezBilgileri set Ulasim=NULL WHERE RezId=@RezId", Datacon.baglanti());
komut.Parameters.AddWithValue("@RezId", Id);
komut.ExecuteNonQuery();
Datacon.baglanti().Close();
}
public void KonaklamaIptal(int Id)
{
SqlCommand komut = new SqlCommand("Update tblRezBilgileri set Konaklama=NULL WHERE RezId=@RezId", Datacon.baglanti());
komut.Parameters.AddWithValue("@RezId", Id);
komut.ExecuteNonQuery();
Datacon.baglanti().Close();
}
}
}