Example #1
0
        public ActionResult Index(ProductionLinesModel model, int newOrder, int originalOrder)
        {
            using (var svc = new ProductionLineService())
            {
                //List<ProductionLinesModel> m = Mapper.Map<List<ProductionLinesDto>, List<ProductionLinesModel>>(svc.GetAll());
                var dto = Mapper.Map <ProductionLinesModel, ProductionLinesDto>(model);
                dto.PlantID = CurrentPlantId;
                svc.Reorder(dto, newOrder, originalOrder);
            }

            return(RedirectToAction("Index"));
        }