public void CreateSomethingElse(string name, string[] othernames) { var somethingElse = somethingElseFactory.Create(name); foreach (var nm in othernames) { var something = somethingFactory.Create(nm); somethingElse.Somethings.Add(something); } persistence.SaveSomethingElse(somethingElse); }
public Domain.Models.SomethingElse UpdateSomethingElseAddSomething(int id, string name) { var something = somethingFactory.Create(name); return(persistence.UpdateSomethingElseByIdAddSomething(id, something)); }
public void CreateSomething() { var something = factory.Create(); persistence.SaveSomething(something); }