public override async Task <Empty> UpdateGoal(GoalDto request, ServerCallContext context) { var goal = request.ToGoal(); await _kanbanRepository.StoreGoalAsync(goal); return(new Empty()); }
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 }); }