Ejemplo n.º 1
0
        public void GetAll()
        {
            UnityResolver.Register();
            IBatchManager BatchManager = UnityResolver.Resolve <IBatchManager>();

            List <Batch> list = BatchManager.GetAll();

            foreach (Batch batch in list)
            {
                Console.WriteLine("Ashan Tharuka : " + batch.BatchId);
            }
        }
 // GET: Batches
 public IActionResult Index()
 {
     return(View(_iBatchManager.GetAll()));
 }
Ejemplo n.º 3
0
        // GET: Batches
        public IActionResult Index()
        {
            var batches = _iBatchManager.GetAll().ToList();

            return(View(batches));
        }