private async Task SaveBudgetAsync(string userId) { var budgetToSend = MapBudget(_budget); budgetToSend.UserId = userId; await _budgetsService.Update(budgetToSend); }
public async Task Run([QueueTrigger("users-budgets", Connection = "AzureWebJobsMailchimpServiceQueue")] Budget budget, ILogger log) { log.LogInformation($"UpsertUsersBudget queue message: {JsonConvert.SerializeObject(budget)}"); if (budget != null) { await _budgetsService.Update(budget); } }