public Egg Create(int id) { Chicken chicken = Context.Chickens.Find(id); Egg egg = chicken.CreateChild(); Context.Eggs.Add(egg); Context.SaveChanges(); return(egg); }
public Egg Create(int id) { Chicken chicken = Context.Chickens.Find(id); Egg egg = chicken.CreateChild(); Context.Eggs.Add(egg); Context.SaveChanges(); return(egg); }