public async Task <IActionResult> DeleteById( [HttpTrigger(AuthorizationLevel.Anonymous, "delete", Route = "project/{id}")] HttpRequest req, ILogger log, string id) { return(await CommandQueryFactory.Create <DeleteByIdCommand>(req, log) .AddIdRouteParameter(id) .OnSuccess(x => _projectHandler.Delete(x))); }