예제 #1
0
파일: Round.cs 프로젝트: dmmusil/GolfES
        public async Task SelectGolfer()
        {
            var result = await _svc.Handle(new SelectGolfer(RoundId,
                                                            GolferId.From(Guid.NewGuid()), true));

            _state = result.State;
        }
예제 #2
0
파일: Round.cs 프로젝트: dmmusil/GolfES
        public async Task CreateRound(string id)
        {
            var result = await _svc.Handle(new SelectCourse(new RoundId(id),
                                                            CourseId.From(Guid.Parse(SelectedCourse))));

            _state = result.State;
        }
예제 #3
0
파일: Round.cs 프로젝트: dmmusil/GolfES
 public async Task Load(string roundId)
 {
     try
     {
         _state = await _svc.LoadState(roundId);
     }
     catch
     {
         _state = null;
     }
 }