public SigmaResultType ListClientCostCode() { SigmaResultType result = new SigmaResultType(); try { var queryStr = WebOperationContext.Current.IncomingRequest.UriTemplateMatch.QueryParameters; string max = queryStr["max"]; string offset = queryStr["offset"]; string s_option = queryStr["s_option"]; string s_key = queryStr["s_key"]; string o_option = queryStr["o_option"]; string o_desc = queryStr["o_desc"]; CostCodeMgr costCodeMgr = new CostCodeMgr(); result = costCodeMgr.ListClientCostCode(offset, max, s_option, s_key, o_option, o_desc); return result; } catch (Exception ex) { // Log Exception ExceptionHelper.logException(ex); result.IsSuccessful = false; result.ErrorMessage = ex.Message; return result; } }