I figured it out, had to name the function first -.-. You need to use this line prior to using the actual function.
private static void PlaceItemIn(Container parent, int x, int y, Item item)
{
parent.AddItem(item);
item.Location = new Point3D(x, y, 0);
}