예제 #1
0
        public bool Delete(FirearmEntity firearmEntity)
        {
            var firearm = _firearms.Single(f => f.Identifier == firearmEntity.Identifier);

            _firearms.Remove(firearm);

            return true;
        }
예제 #2
0
        public FirearmEntity Save(FirearmEntity firearmEntity)
        {
            _firearms.Add(firearmEntity);

            return firearmEntity;
        }