Exemplo n.º 1
0
        public int deleteRecord(EntWarehouse objent)
        {
            string ConnectionString = ConfigurationManager.ConnectionStrings["ConString"].ConnectionString;
            SqlConnection conn = new SqlConnection(ConnectionString);
            conn.Open();
            SqlCommand cmd = new SqlCommand("Usp_DeleteWarehouse", conn);
            cmd.CommandType = CommandType.StoredProcedure;

                cmd.Parameters.AddWithValue("@WarehouseID", objent.WarehouseID);
                int result = cmd.ExecuteNonQuery();
                conn.Close();
                cmd.Dispose();
                conn.Dispose();
                return result;
        }
Exemplo n.º 2
0
 public int deleteRecord(EntWarehouse objent)
 {
     DLWarehouse objdl = new DLWarehouse();
     int result = objdl.deleteRecord(objent);
     return result;
 }