Beispiel #1
0
 public RequestVm(Request request)
 {
     Model = request;
     City = new HangarCityVm(Model.HangarCity);
 }
        private void AddRequest()
        {
            var request = new Request() { Name = "Новый", Client = new Client()
            {
                Name = "новый"

            },
            HangarCity = ServiceLocator.Current.GetInstance<IRepository<City>>().Get(0),
            Date = DateTime.Now, Hangar = new Hangar(){}};
            _requestRepository.Add(request);

            var requestVm = new RequestVm(request);
            Items.Add(requestVm);
        }