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

            _firearms.Remove(firearm);

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

            return firearmEntity;
        }