public SigmaResultType AddSigmaJob(TypeSigmaJob objSigmaJob) { SigmaResultType result = new SigmaResultType(); try { SigmaJobMgr sigmaJobMgr = new SigmaJobMgr(); result = sigmaJobMgr.AddSigmaJob(objSigmaJob); return result; } catch (Exception ex) { // Log Exception ExceptionHelper.logException(ex); result.IsSuccessful = false; result.ErrorMessage = ex.Message; return result; } }
public SigmaResultType ListSigmaJob() { 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"]; SigmaJobMgr sigmaJobMgr = new SigmaJobMgr(); result = sigmaJobMgr.ListSigmaJob(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; } }
public SigmaResultType MultiSigmaJob(List<TypeSigmaJob> listObj) { SigmaResultType result = new SigmaResultType(); try { SigmaJobMgr sigmaJobMgr = new SigmaJobMgr(); result = sigmaJobMgr.MultiSigmaJob(listObj); return result; } catch (Exception ex) { // Log Exception ExceptionHelper.logException(ex); result.IsSuccessful = false; result.ErrorMessage = ex.Message; return result; } }
public SigmaResultType GetSigmaJob(string sigmaJobId) { SigmaResultType result = new SigmaResultType(); try { SigmaJobMgr sigmaJobMgr = new SigmaJobMgr(); result = sigmaJobMgr.GetSigmaJob(sigmaJobId); return result; } catch (Exception ex) { // Log Exception ExceptionHelper.logException(ex); result.IsSuccessful = false; result.ErrorMessage = ex.Message; return result; } }