private SalesmanSupplierViewModel Map(Core.Domain.Master.CostCentreEntities.SalesmanSupplier item)
        {
            var salesmanSupplier = new SalesmanSupplierViewModel();
            salesmanSupplier.Id = item.Id;
            salesmanSupplier.Supplier = item.Supplier;

            salesmanSupplier.SelectedSalesman.Id = item.DistributorSalesmanRef.Id;
            

                 
            return salesmanSupplier;
        }
        public void LoadAllSupplier()
        {
            
    
            using (var c = NestedContainer)
            {
                //var ctx = Using<CokeDataContext>(c);
                //var suppliers =
                //    ctx.tblSupplier.Where(n => n.IM_Status == (int)EntityStatus.Active).ToList();//.Select(n => n.Name).ToList();
                var suppliers = Using<ISupplierRepository>(c).GetAll().ToList();
                 
                foreach (var supplier in suppliers)
                {
                    var supplierItem = new SalesmanSupplierViewModel();
                    supplierItem.Supplier = supplier;
                    SalemanSupplierItems.Add(supplierItem);
                }
                if (!suppliers.Any()) return;
            }

        }