Example #1
0
 public Field(LocationDto dto)
 {
     Dto = dto;
 }
        public void LoadData( int locationId )
        {
            _currentField = _eventRepository.Locations().FirstOrDefault(x => x.Id == locationId) ?? new LocationDto();

            RaisePropertyChanged(() => FieldName);
        }
Example #3
0
 public EventDto()
 {
     Team = new TeamDto();
     Location = new LocationDto();
     PracticeDrills = new List<PracticeDrillDto>();
 }
        public void Save(LocationDto locationDto)
        {
            DB.Database.Save<LocationDto>(locationDto);

            DB.Database.Flush();
        }