public IHttpActionResult RecordPagination(Pagination pagination) { SYS_REPORTCARDService service = new SYS_REPORTCARDService(); try { var query = service.RecordPagination(pagination); var packageEntity = query.PackageEntityPaginations(pagination); return(Json(packageEntity)); } catch (Exception) { PackageResultEntity <object> packageResultEntity = new PackageResultEntity <object>() { list = null, msg = "failed" }; return(Json(packageResultEntity)); } }
public IHttpActionResult RecordQuery(string key) { SYS_REPORTCARDService service = new SYS_REPORTCARDService(); try { var query = service.GetEntity(key); var packageEntity = query.PackageResult(); return(Json(packageEntity)); } catch (Exception) { PackageResultEntity <object> packageResultEntity = new PackageResultEntity <object>() { list = null, msg = "failed" }; return(Json(packageResultEntity)); } }