private ProductCount ProductCountModelToDb(ProductCountModel productCount) { ProductService productService = new ProductService(_dataManager); return(new ProductCount() { Count = productCount.Count, Product = productService.ProductModelToDb(productCount.Product) }); }
private void Init(ServicesManager services) { _services = services; ProductCount = new ProductCountModel(); Save = new SimpleCommand(() => { services.Comings.Save(Coming); ShowWin.Back(); }); }