Пример #1
0
        public override async Task <Empty> UpdateGoal(GoalDto request, ServerCallContext context)
        {
            var goal = request.ToGoal();
            await _kanbanRepository.StoreGoalAsync(goal);

            return(new Empty());
        }
Пример #2
0
        public override async Task <GoalAdded> AddGoal(GoalDto request, ServerCallContext context)
        {
            var goal = request.ToGoal();
            await _kanbanRepository.StoreGoalAsync(goal);

            request.Id = goal.Id;

            return(new GoalAdded
            {
                Goal = request
            });
        }