public Result Save(Draft draft)
        {
            var dataRow = new SampleDataTable
            {
                Id            = draft.Id.AsGuid(),
                Status        = ConfigStatus.Draft,
                Data          = draft.Data.AsString(),
                DraftCreation = draft.CreationDate.AsDateTime(),
                DraftAuthor   = draft.Author.AsString()
            };

            _data.Add(dataRow);

            return(Result.Success());
        }
        public int Save(Draft draft)
        {
            var id      = _data.Count + 1;
            var dataRow = new SampleDataTable
            {
                Id            = id,
                Status        = ConfigStatus.Draft,
                Data          = draft.Data,
                DraftCreation = draft.CreationDate,
                DraftAuthor   = draft.Author
            };

            _data.Add(dataRow);

            return(dataRow.Id);
        }