public void SearchSMSLogs() { try { using (ProxyBE p = new ProxyBE()) { SearchSMSLogArgs args = new SearchSMSLogArgs(); args.OrderBy = "Created desc"; args.RowNumberFrom = pagingParm.RowNumberFrom; args.RowNumberTo = pagingParm.RowNumberTo; if (!string.IsNullOrEmpty(Request["CreatedFrom"])) { args.CreatedFrom = Convert.ToDateTime(Request["CreatedFrom"]); } if (!string.IsNullOrEmpty(Request["CreatedTo"])) { args.CreatedTo = Convert.ToDateTime(Request["CreatedTo"]).AddDays(1); } //Where SearchResult sr = p.Client.SearchSMSLogs(SenderUser, args); Response.Write(JSONHelper.Dataset2Json(sr.DataSet)); } } catch (Exception ex) { PLogger.LogError(ex); Response.Write(ex.Message); } }
public SearchResult SearchSMSLogs(Sender sender, SearchSMSLogArgs args) { try { using (ObjectProxy op = new ObjectProxy()) { return(op.SearchSMSLogs(args)); } } catch (Exception ex) { PLogger.LogError(ex); throw ex; } }