public SigmaResultType AddCWA(TypeCWA objCWA)
 {
     SigmaResultType result = new SigmaResultType();
     try
     {
         CWAMgr cWAMgr = new CWAMgr();
         result = cWAMgr.AddCWAInfo(objCWA);
         return result;
     }
     catch (Exception ex)
     {
         // Log Exception
         ExceptionHelper.logException(ex);
         result.IsSuccessful = false;
         result.ErrorMessage = ex.Message;
         return result;
     }
 }
        //public SigmaResultType RemoveCWP(TypeCWP objCWP)
        //{
        //    SigmaResultType result = new SigmaResultType();
        //    try
        //    {
        //        CWAMgr CWAMgr = new CWAMgr();
        //        result = CWAMgr.RemoveCWP(objCWP);
        //        return result;
        //    }
        //    catch (Exception ex)
        //    {
        //        // Log Exception
        //        ExceptionHelper.logException(ex);
        //        result.IsSuccessful = false;
        //        result.ErrorMessage = ex.Message;
        //        return result;
        //    }
        //}
        public SigmaResultType MultiCWP(List<TypeCWP> listObj)
        {
            SigmaResultType result = new SigmaResultType();

            try
            {
                CWAMgr CWAMgr = new CWAMgr();
                result = CWAMgr.MultiCWP(listObj);
                return result;
            }
            catch (Exception ex)
            {
                // Log Exception
                ExceptionHelper.logException(ex);
                result.IsSuccessful = false;
                result.ErrorMessage = ex.Message;
                return result;
            }
        }
 public SigmaResultType GetCWPByCWAId(string cwaId)
 {
     SigmaResultType result = new SigmaResultType();
     try
     {
         CWAMgr CWAMgr = new CWAMgr();
         result = CWAMgr.GetCWPByCWAId(cwaId);
         return result;
     }
     catch (Exception ex)
     {
         // Log Exception
         ExceptionHelper.logException(ex);
         result.IsSuccessful = false;
         result.ErrorMessage = ex.Message;
         return result;
     }
 }
        //public SigmaResultType ListCWP()
        //{
        //    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"];
        //        CWAMgr CWAMgr = new CWAMgr();
        //        result = CWAMgr.ListCWP(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 AddCWP(TypeCWP objCWP)
        //{
        //    SigmaResultType result = new SigmaResultType();
        //    try
        //    {
        //        CWAMgr CWAMgr = new CWAMgr();
        //        result = CWAMgr.AddCWP(objCWP);
        //        return result;
        //    }
        //    catch (Exception ex)
        //    {
        //        // Log Exception
        //        ExceptionHelper.logException(ex);
        //        result.IsSuccessful = false;
        //        result.ErrorMessage = ex.Message;
        //        return result;
        //    }
        //}
        public SigmaResultType UpdateCWP(TypeCWP objCWP)
        {
            SigmaResultType result = new SigmaResultType();

            try
            {
                CWAMgr CWAMgr = new CWAMgr();
                result = CWAMgr.UpdateCWP(objCWP);
                return result;
            }
            catch (Exception ex)
            {
                // Log Exception
                ExceptionHelper.logException(ex);
                result.IsSuccessful = false;
                result.ErrorMessage = ex.Message;
                return result;
            }
        }