public JsonResult LoadApproveContractsOwnOrgansByTimespan(string startTime, string endTime) { string strErrText; ContractSystem contract = new ContractSystem(); List<Organization> listOrgan = contract.LoadApproveContractsOwnOrgansByTimespan(startTime, endTime, LoginAccountId, LoginStaffName, out strErrText); if (listOrgan == null) { throw new Exception(strErrText); } var ret = from o in listOrgan select new { Id = o.Id.ToString(), FullName = o.FullName }; return Json(ret, JsonRequestBehavior.AllowGet); }