public TZResponse GetTZInformationByKeyID(TZRequest request) { TZ tz = tzRepository.FindBy(request.KeyID); TZResponse response = new TZResponse { TZView = tz.ConvertToView() }; return(response); }
public string GetTZInformations(Guid id) { TZRequest request = new TZRequest { KeyID = id }; IReportService service = new ReportService(); TZResponse response = service.GetTZInformationByKeyID(request); string result = JsonHelper.ObjectToJson(response.TZView); return(result); }
public static string GetTZInformation(string reportType, string reportName, string modifiedFlag, string startTime, string endTime) { TZRequest request = new TZRequest { EndTime = endTime, ReportName = reportName, ReportType = reportType, StartTime = startTime, ModifiedFlag = modifiedFlag }; ReportService service = new ReportService(); TZResponse response = service.GetTZ(request); EasyUIJsonTemplate <TZView> jsonclass = new EasyUIJsonTemplate <TZView> { total = response.TZViews.Count(), rows = response.TZViews }; string result = JsonHelper.ObjectToJson(jsonclass); return(result); }