public SigmaResultType UpdateAssignmentComponentProgressAll(List<TypeAssignmentCostCode> objAssignmentCostCode)
        {
            SigmaResultType result = new SigmaResultType();

            List<TypeAssignmentCostCode> trgAssignmentCostCode = TargetLlistAssignmentCostCode(objAssignmentCostCode);

            try
            {
                AssignCostCodeMgr assigncostCodeMgr = new AssignCostCodeMgr();
                result = assigncostCodeMgr.MultiAssignmentComponentProgress(trgAssignmentCostCode);
                return result;
            }
            catch (Exception ex)
            {
                // Log Exception
                ExceptionHelper.logException(ex);
                result.IsSuccessful = false;
                result.ErrorMessage = ex.Message;
                return result;
            }
        }
        private static List<TypeAssignmentCostCode> TargetLlistAssignmentCostCode(List<TypeAssignmentCostCode> objAssignmentCostCode)
        {
            var queryStr = WebOperationContext.Current.IncomingRequest.UriTemplateMatch.QueryParameters;
            string max = queryStr["max"];
            string offset = queryStr["offset"];
            List<string> s_option = new List<string>();
            List<string> s_key = new List<string>();
            s_option.Add("@CwpId");
            s_option.Add("@TaskCategoryId");
            s_option.Add("@TaskTypeId");
            s_option.Add("@ProgressStepId");
            s_key.Add(queryStr["cwp"]);
            s_key.Add(queryStr["taskcategory"]);
            s_key.Add(queryStr["tasktype"]);
            s_key.Add(queryStr["progress"]);

            string o_option = queryStr["o_option"];
            string o_desc = queryStr["o_desc"];

            List<TypeAssignmentCostCode> result = new List<TypeAssignmentCostCode>();
            AssignCostCodeMgr assigncostCodeMgr = new AssignCostCodeMgr();
            result = assigncostCodeMgr.TargetListAssignmentComponentProgress(offset, max, s_option, s_key, o_option, o_desc);

            result.ForEach(x => x.CostCodeId = objAssignmentCostCode[0].CostCodeId);

            return result;
        }
        public SigmaResultType ListAssignmentComponentProgress()
        {
            SigmaResultType result = new SigmaResultType();
            try
            {
                var queryStr = WebOperationContext.Current.IncomingRequest.UriTemplateMatch.QueryParameters;
                string max = queryStr["max"];
                string offset = queryStr["offset"];
                List<string> s_option = new List<string>();
                List<string> s_key = new List<string>();
                s_option.Add("@CwpId");
                s_option.Add("@TaskCategoryId");
                s_option.Add("@TaskTypeId");
                s_option.Add("@ProgressStepId");
                s_key.Add(queryStr["cwp"]);
                s_key.Add(queryStr["taskcategory"]);
                s_key.Add(queryStr["tasktype"]);
                s_key.Add(queryStr["progress"]);

                string o_option = queryStr["o_option"];
                string o_desc = queryStr["o_desc"];

                AssignCostCodeMgr assigncostCodeMgr = new AssignCostCodeMgr();

                result = assigncostCodeMgr.ListAssignmentComponentProgress(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;
            }
        }