コード例 #1
0
 public async Task Create(EstimatedGoal estimatedGoal)
 {
     await EstimatedGoals.InsertAsync(() => new EstimatedGoalEntity
     {
         Id            = estimatedGoal.Id,
         AssignPrice   = estimatedGoal.AssignPrice,
         CompletePrice = estimatedGoal.CompletePrice
     });
 }
コード例 #2
0
        public async Task <EstimatedGoal> Get(string id)
        {
            var entity = await EstimatedGoals.Where(o => o.Id == id).FirstOrDefaultAsync();

            return(entity.ToDomain());
        }