// ***************************** ***************************** ***************************** // constructor public UbicacionAddViewModel(UbicacionViewModel UbicacionViewModel) { this._ParentUbicacion = UbicacionViewModel; this._UbicacionRepository = new GestorDocument.DAL.Repository.UbicacionRepository(); this._Ubicacion = new UbicacionModel() { IdUbicacion = new UNID().getNewUNID(), IsActive = true }; }
public void GetUbicacion(UbicacionViewModel viewModel) { try { this.DataContext = new UbicacionAddViewModel(viewModel); } catch (Exception) { ; } }