public Gun GetById(string id) { if (!cachedGuns.TryGetValue(id, out var gun)) { gun = origin.GetById(id); cachedGuns.Add(gun.Id, gun); } return(gun); }
public Gun Get(string id) { return(repository.GetById(id)); }