Exemplo n.º 1
0
        public Egg Create(int id)
        {
            Chicken chicken = Context.Chickens.Find(id);
            Egg     egg     = chicken.CreateChild();

            Context.Eggs.Add(egg);
            Context.SaveChanges();
            return(egg);
        }