コード例 #1
0
        public JsonResult RequestType()
        {
            DropDownListsRepository model = new DropDownListsRepository();

            return Json(model.ReadRequest().OrderBy(o => o.RequestType).Select(c => new { RequestTypeID = c.ID, RequestType = c.RequestType }).OrderBy(o => o.RequestType), JsonRequestBehavior.AllowGet);
        }