It might be a really stupid question but;
If I am creating a data-set let say,
[WebMethod(Description = "Returns a Fruit XML")]
public XmlElement GetALLFruits()
{
Fruit fruit = new Fruit();
fruit.Name = "Mango La Ka Buma";
fruit.expiryDate = "11/11/1911";
getFruitCrateDetails(fruit);
return fruit.xml; //just giving example syntax might be wrong
}
public void getFruitCrateDetails(Fruit fruit)
{
FruitCrate crate = new FruitCrate();
crate.id = 999;
Fruit.Crate.add(crate);
// Now here do I need to return "Fruit" object or not ?
}
And I have 10 or 20 method, should i keep them in methods or combine in 1 big method.