public PracticeDrill(PracticeDrillDto dto)
 {
     if (dto == null)
     {
         var x = 1;
     }
     _dto = dto ?? new PracticeDrillDto();
 }
        public void Save(PracticeDrillDto drill)
        {
            try
            {
                DB.Database.Save<PracticeDrillDto>(drill);

                DB.Database.Flush();
            }
            catch (Exception e)
            {
                var x = e;
            }
        }
示例#3
0
 public Drill(PracticeDrillDto dto)
 {
     _dto = dto;
 }
        private void SaveNewDrill()
        {
            var drill = new PracticeDrillDto
                {
                    SportTypeId = _currentSportId,
                    Name = DrillName,
                    Notes = DrillNotes,
                    ExpectedDurationInMinutes = SelectedDuration.Minutes
                };

            _drillsRepository.Save(drill);

            var newId = drill.Id;

            _sessonStateService.Clear();
            _sessonStateService.Set(SessoinStateConstants.NewDrill, newId);

            _navigationService.GoBack();
        }