public SelectionResult Get(string id)
        {
            RequiresAuthentication();

            var result = Context.SelectionGateway.Get(id);

            return(SelectionMapper.Map(result));
        }
        public SelectionResult Set(SelectionResult selection)
        {
            RequiresAuthentication();

            if (string.IsNullOrEmpty(selection.Identifier))
            {
                selection.Identifier = Guid.NewGuid().ToString();
            }

            var result = Context.SelectionGateway.Set(SelectionMapper.Map(selection));

            return(SelectionMapper.Map(result));
        }