private Task <Abstractions.Types.Author?> AddAuthorResolver(IResolveFieldContext <object> context) { var request = context.GetArgument <Abstractions.Types.AddAuthorRequest>("request"); return(_bookStorage.AddAuthor(request)); }
public Task <Author?> AddAuthor(AddAuthorRequest request) => _bookStorage.AddAuthor(request);