Example #1
0
 public SigmaResultType AddSigmaLog(TypeSigmaLog objSigmaLog)
 {
     SigmaResultType result = new SigmaResultType();
     try
     {
         LogMgr LogMgr = new LogMgr();
         result = LogMgr.AddSigmaLog(objSigmaLog);
         return result;
     }
     catch (Exception ex)
     {
         // Log Exception
         ExceptionHelper.logException(ex);
         result.IsSuccessful = false;
         result.ErrorMessage = ex.Message;
         return result;
     }
 }
Example #2
0
        public SigmaResultType MultiSigmaLog(List<TypeSigmaLog> listObj)
        {
            SigmaResultType result = new SigmaResultType();

            try
            {
                LogMgr LogMgr = new LogMgr();
                result = LogMgr.MultiSigmaLog(listObj);
                return result;
            }
            catch (Exception ex)
            {
                // Log Exception
                ExceptionHelper.logException(ex);
                result.IsSuccessful = false;
                result.ErrorMessage = ex.Message;
                return result;
            }
        }
Example #3
0
        public SigmaResultType ListSigmaLog()
        {
            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"];

                LogMgr LogMgr = new LogMgr();
                result = LogMgr.ListSigmaLog(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;
            }
        }
Example #4
0
 public SigmaResultType GetSigmaLog(string id)
 {
     SigmaResultType result = new SigmaResultType();
     try
     {
         LogMgr LogMgr = new LogMgr();
         result = LogMgr.GetSigmaLog(id);
         return result;
     }
     catch (Exception ex)
     {
         // Log Exception
         ExceptionHelper.logException(ex);
         result.IsSuccessful = false;
         result.ErrorMessage = ex.Message;
         return result;
     }
 }