コード例 #1
0
        private Task <Abstractions.Types.Author?> AddAuthorResolver(IResolveFieldContext <object> context)
        {
            var request = context.GetArgument <Abstractions.Types.AddAuthorRequest>("request");

            return(_bookStorage.AddAuthor(request));
        }
コード例 #2
0
 public Task <Author?> AddAuthor(AddAuthorRequest request) => _bookStorage.AddAuthor(request);