public async Task Create(EstimatedGoal estimatedGoal) { await EstimatedGoals.InsertAsync(() => new EstimatedGoalEntity { Id = estimatedGoal.Id, AssignPrice = estimatedGoal.AssignPrice, CompletePrice = estimatedGoal.CompletePrice }); }
public async Task <EstimatedGoal> Get(string id) { var entity = await EstimatedGoals.Where(o => o.Id == id).FirstOrDefaultAsync(); return(entity.ToDomain()); }