示例#1
0
        public ActionResult GetAllItemSize()
        {
            DalSysSize objSource = new DalSysSize();

            var items = objSource.GetAllActiveItemSize();

            return(Json(items, JsonRequestBehavior.AllowGet));
        }
        public ActionResult GetAllSize()
        {
            var size  = _dalSysSize.GetAllActiveItemSize();
            var sizes = size.Select(svm => new SizeVM
            {
                SizeID   = svm.SizeID,
                SizeName = svm.SizeName
            }).ToList();

            return(Json(sizes, JsonRequestBehavior.AllowGet));
        }