예제 #1
0
        private List <Ingridient> getAlergens(string alergensIdsText)
        {
            List <Ingridient> result = new List <Ingridient>();

            if (alergensIdsText.Equals(""))
            {
                return(result);
            }
            foreach (string alergenId in alergensIdsText.Split(' '))
            {
                result.Add(IngridientRepository.GetInstance().Read(uint.Parse(alergenId)));
            }
            return(result);
        }
예제 #2
0
 public Ingridient AddIngridient(Ingridient ingridient)
 {
     return(IngridientRepository.GetInstance().Create(ingridient));
 }