public List <VegetableDAO> GetVegetables() { var returnList = new List <VegetableDAO>(); foreach (var item in data.GetVegetables()) { returnList.Add(VegetableMapper.MapToVegetableDAO(item)); } return(returnList); }
public VegetableDAO GetVegetable(int id) { return(VegetableMapper.MapToVegetableDAO(data.GetVegetable(id))); }