public Gun Save(string name) { if (validator.Validate(name)) { var gun = new Gun(idGenerator.NewId(), name); repository.Save(gun); return(gun); } Console.WriteLine("Brand not valid. Returning Default."); return(Gun.GetNineEleven()); }
public void Save(Gun gun) { origin.Save(gun); cachedGuns.Add(gun.Id, gun); }