public JsonResult GetScrimTypeList()
        {
            var scrimTypes = new List <ScrimTypeModel>();

            using (var svc = new ScrimTypeService())
            {
                var dtos = svc.GetAllByPlantId(CurrentPlantId, false);
                scrimTypes.AddRange(Mapper.Map <List <ScrimTypeDto>, List <ScrimTypeModel> >(dtos));
            }
            return(Json(scrimTypes, JsonRequestBehavior.AllowGet));
        }
Exemple #2
0
        public JsonResult GetAllScrimTypeResult(bool isLiner)
        {
            List <ScrimTypeModel> scrimTypes = new List <ScrimTypeModel>();

            using (ScrimTypeService svc = new ScrimTypeService())
            {
                var dtos = svc.GetAllByPlantId(CurrentPlantId, isLiner);
                scrimTypes.AddRange(Mapper.Map <List <ScrimTypeDto>, List <ScrimTypeModel> >(dtos));
            }
            return(Json(scrimTypes, JsonRequestBehavior.AllowGet));
        }