public int UpdateNSX(Info.NhaSXInfo info) { cn.ExecuteNonQuery("SP_UPDATENHASX", new string[] { "@MA", "@MAQG", "@DIENTHOAI", "@TENSX" }, new object[] { info.Mansx, info.MaQG, info.DienThoai, info.Tennsx }); return(1); }
public int DeleteNSX(Info.NhaSXInfo info) { int id = cn.ExecuteNonQuery("sp_DeleteNSX", new string[] { "@MASX" }, new object[] { info.Mansx }); return(id); }
public int InsertNSX(Info.NhaSXInfo info) { int id = cn.ExecuteInsert("SP_INSERTNSX", new string[] { "@MAQG", "@DIENTHOAI", "@TENSX" }, new object[] { info.MaQG, info.DienThoai, info.Tennsx }); return(id); }