Пример #1
0
 public async Task Create(Goal goal)
 {
     await Goals.InsertAsync(() => new GoalEntity
     {
         Id          = goal.Id ?? Guid.NewGuid().ToString(),
         Title       = goal.Title,
         Description = goal.Description,
         State       = goal.State
     });
 }