Example #1
0
        public ActionResult Index()
        {
            //  List<ProdLineReportOrderModel> model;
            List <ProductionLinesModel> model;

            using (var service = new ProductionLineService())
            {
                model = Mapper.Map <List <ProductionLinesDto>, List <ProductionLinesModel> >(service.GetByPlant(CurrentPlantId)).OrderBy(x => x.RepOrder).ToList();
            }

            return(View(model));
        }