public JsonResult GetClassificationsByType(string name)
        {
            var classificationRepo = new ClassificationRepository();
            List <Classification> classifications = classificationRepo.GetClassificationsByType(name);

            List <ClassificationViewModel> lstClassificationViewModel = new List <ClassificationViewModel>();

            lstClassificationViewModel = Mapper.Map <List <Classification>, List <ClassificationViewModel> >(classifications);

            return(Json(lstClassificationViewModel, JsonRequestBehavior.AllowGet));
        }
Example #2
0
        public JsonResult GetClassificationsByType(string type)
        {
            var classification = new ClassificationRepository();

            return(Json(classification.GetClassificationsByType(type), JsonRequestBehavior.AllowGet));
        }