public void DeleteById(int id)
        {
            var match = _Repository.GetById(id);

            if (match == null)
            {
                throw new InvalidOperationException(
                          $"Could not locate an item with an id of '{id}'."
                          );
            }
            else
            {
                _Repository.Delete(match);
            }
        }