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