Beispiel #1
0
        public async Task <Goal> CreateAsync(Goal goal)
        {
            goal.Id = Guid.NewGuid();

            var created = await GoalRepository.CreateAsync(goal);

            return(created
                ? goal
                : null);
        }