private void Load()
 {
     using (var container = NestedContainer)
     {
         var data = Using<IReCollectionRepository>(container).UnderBankingItemReceived(Id);
         LineItems.Clear();
         foreach(var item in data)
         {
             var lineitem = new UnderBankingCollectionItemViewModel
                                {
                                    Amount=item.Amount,
                                    IsConfirmed = !item.IsConfirmed,
                                    ReCollectionType = item.Type,
                                    Id = item.Id,
                                };
             LineItems.Add(lineitem);
         }
     }
 }
        private void ConfirmCollection(UnderBankingCollectionItemViewModel item)
        {
            using (var container = NestedContainer)
            {
                if (item != null)
                {
                    var wf = Using<IReCollectionWFManager>(container);
                    var config = Using<IConfigService>(container).Load();
                    ReCollection doc = new ReCollection(item.Id);
                    doc.CostCentreId = config.CostCentreId;
                    doc.CostCentreApplicationId = config.CostCentreApplicationId;
                    doc.RecepientCostCentreId = config.CostCentreId;
                    doc.Id = Id;
                    UnderBankingItem sItem = new UnderBankingItem(item.Id);
                    sItem.FromCostCentreId = config.CostCentreId;
                    doc.ConfirmLineItem(sItem);
                    wf.SubmitChanges(doc);
                    MessageBox.Show("Received Underbanking Saved successfully");
                    Load();

                }
            }
        }