public async Task Create(GoalCost goalCost) { await GoalCosts.InsertAsync(() => new GoalCostEntity { Id = goalCost.Id, Title = goalCost.Title, Cost = goalCost.Cost, CompleteDateTime = goalCost.CompletedDateTime }); }
public async Task Execute(CreateGoalCostDto createGoalCostDto) { var newGoalCost = new GoalCost(createGoalCostDto.Id, createGoalCostDto.Title, null, null); await goalCostWriteDbOperations.Create(newGoalCost); }