public MaterialListViewModel(IMaterialReceiptRepository materialReceipt) { _materialReceipt = materialReceipt; foreach (var entity in _materialReceipt.GetData()) { MaterialReceipts.Add(new MaterialListViewModelMaterial(entity)); } }
public MaterialStoringViewModel(IMaterialRepository materialRepository, IMaterialReceiptRepository materialReceiptRepository) { _materialRepository = materialRepository; _materialReceiptRepository = materialReceiptRepository; }