public Alquiler(AlquilerModel alquiler = null) { InitializeComponent(); if (alquiler == null) { BindingContext = new AlquilerViewModel(Navigation); } else { BindingContext = new AlquilerViewModel(Navigation, alquiler); } }
public AlquilerViewModel(INavigation navigation, AlquilerModel amigo) { nuevo = amigo; Navigation = navigation; }
public AlquilerViewModel(INavigation navigation) { nuevo = new AlquilerModel(); Navigation = navigation; }