public async Task <IEnumerable <TimesheetModel> > Trigger( [ActivityTrigger] GetTimesheets request, ILogger log, CancellationToken ct) { log.LogInformation("C# HTTP trigger function processed a request."); return(await Mediator.Send(request, ct)); }
public async Task <IActionResult> Run( [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = null)] GetTimesheets request, ILogger log, CancellationToken ct) { log.LogInformation("C# HTTP trigger function processed a request."); return(await RunRequest(request, ct)); }