protected override async void AfterAddExecute(VmAdapter <Order> viewModel) { var rep = ShopManager.RepositoryManager.GetRepository <OrderDetails>(); if (viewModel.Model.OrderDetails == null) { return; } await rep.Add(viewModel.Model.OrderDetails); }
public static async void Assign <TModel>(VmAdapter <TModel> property) where TModel : BaseModel { var selected = await Change(property.Model); if (selected == null) { return; } property.LoadModel(selected); }
protected override void AfterEditExecute(VmAdapter <Order> viewModel) { base.AfterEditExecute(viewModel); }
protected override void BeforeEditExecute(VmAdapter <Order> viewModel) { viewModel.IsReadOnly = true; }