public Field(LocationDto dto) { Dto = dto; }
public void LoadData( int locationId ) { _currentField = _eventRepository.Locations().FirstOrDefault(x => x.Id == locationId) ?? new LocationDto(); RaisePropertyChanged(() => FieldName); }
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(); }