public async Task <IEnumerable <Author> > Handle(GetAllAuthorQuery request, CancellationToken cancellationToken)
        {
            string functionName = "GetAllAuthor:Get";

            Log.ForContext("Message", functionName)
            .ForContext("Error", "").Information(functionName);

            return(await _read.GetAllAuthor());
        }
Ejemplo n.º 2
0
 public async Task <IEnumerable <Author> > Handle(GetAllAuthorQuery request, CancellationToken cancellationToken)
 {
     Log.Information("GetAllAuthorQuery");
     return(await _query.GetAllAuthor());
 }