public ActionResult GetListTemplatesByTypeId(int typeId) { var mng = new ContractsManager(); var items = mng.GetListTemplatesByType(typeId); return(Json(new { result = items.Select(x => new { id = x.id, path = x.path, name = x.name, typeId = x.typeID } ) })); }