//public SigmaResultType RemoveProgressTypeMap(TypeProgressTypeMap objProgressTypeMap)
 //{
 //    SigmaResultType result = new SigmaResultType();
 //    try
 //    {
 //        ProgressTypeMgr progressTypeMgr = new ProgressTypeMgr();
 //        result = progressTypeMgr.RemoveProgressTypeMap(objProgressTypeMap);
 //        return result;
 //    }
 //    catch (Exception ex)
 //    {
 //        // Log Exception
 //        ExceptionHelper.logException(ex);
 //        result.IsSuccessful = false;
 //        result.ErrorMessage = ex.Message;
 //        return result;
 //    }
 //}
 //public SigmaResultType MultiProgressTypeMap(List<TypeProgressTypeMap> listObj)
 //{
 //    SigmaResultType result = new SigmaResultType();
 //    try
 //    {
 //        ProgressTypeMgr progressTypeMgr = new ProgressTypeMgr();
 //        result = progressTypeMgr.MultiProgressTypeMap(listObj);
 //        return result;
 //    }
 //    catch (Exception ex)
 //    {
 //        // Log Exception
 //        ExceptionHelper.logException(ex);
 //        result.IsSuccessful = false;
 //        result.ErrorMessage = ex.Message;
 //        return result;
 //    }
 //}
 public SigmaResultType GetProgressTypeMapByDisciplineCode(string taskCategoryId, string disciplineCode)
 {
     SigmaResultType result = new SigmaResultType();
     try
     {
         ProgressTypeMgr progressTypeMgr = new ProgressTypeMgr();
         result = progressTypeMgr.GetProgressTypeMapByDisciplineCode(taskCategoryId, disciplineCode);
         return result;
     }
     catch (Exception ex)
     {
         // Log Exception
         ExceptionHelper.logException(ex);
         result.IsSuccessful = false;
         result.ErrorMessage = ex.Message;
         return result;
     }
 }
 public SigmaResultType GetProgressType(string progressTypeId)
 {
     SigmaResultType result = new SigmaResultType();
     try
     {
         ProgressTypeMgr progressTypeMgr = new ProgressTypeMgr();
         result = progressTypeMgr.GetProgressType(progressTypeId);
         return result;
     }
     catch (Exception ex)
     {
         // Log Exception
         ExceptionHelper.logException(ex);
         result.IsSuccessful = false;
         result.ErrorMessage = ex.Message;
         return result;
     }
 }
        public SigmaResultType UpdateProgressTypeMap(TypeProgressTypeMap objProgressTypeMap)
        {
            SigmaResultType result = new SigmaResultType();

            try
            {
                ProgressTypeMgr progressTypeMgr = new ProgressTypeMgr();
                result = progressTypeMgr.AddProgressTypeMapInfo(objProgressTypeMap);
                return result;
            }
            catch (Exception ex)
            {
                // Log Exception
                ExceptionHelper.logException(ex);
                result.IsSuccessful = false;
                result.ErrorMessage = ex.Message;
                return result;
            }
        }
        //public SigmaResultType RemoveProgressType(TypeProgressType objProgressType)
        //{
        //    SigmaResultType result = new SigmaResultType();
        //    try
        //    {
        //        ProgressTypeMgr progressTypeMgr = new ProgressTypeMgr();
        //        result = progressTypeMgr.RemoveProgressType(objProgressType);
        //        return result;
        //    }
        //    catch (Exception ex)
        //    {
        //        // Log Exception
        //        ExceptionHelper.logException(ex);
        //        result.IsSuccessful = false;
        //        result.ErrorMessage = ex.Message;
        //        return result;
        //    }
        //}
        public SigmaResultType MultiProgressType(List<TypeProgressType> listObj)
        {
            SigmaResultType result = new SigmaResultType();

            try
            {
                ProgressTypeMgr progressTypeMgr = new ProgressTypeMgr();
                result = progressTypeMgr.MultiProgressType(listObj);
                return result;
            }
            catch (Exception ex)
            {
                // Log Exception
                ExceptionHelper.logException(ex);
                result.IsSuccessful = false;
                result.ErrorMessage = ex.Message;
                return result;
            }
        }
 public SigmaResultType ListProgressTypeByTaskCateogry(string taskCategoryId, string taskTypeId)
 {
     SigmaResultType result = new SigmaResultType();
     try
     {
         ProgressTypeMgr progressTypeMgr = new ProgressTypeMgr();
         result = progressTypeMgr.ListProgressTypeByTaskCateogry(taskCategoryId, taskTypeId);
         return result;
     }
     catch (Exception ex)
     {
         // Log Exception
         ExceptionHelper.logException(ex);
         result.IsSuccessful = false;
         result.ErrorMessage = ex.Message;
         return result;
     }
 }
        public SigmaResultType ListProgressType()
        {
            SigmaResultType result = new SigmaResultType();
            try
            {
                var queryStr = WebOperationContext.Current.IncomingRequest.UriTemplateMatch.QueryParameters;
                //Dictionary<string, string> dictionary = new Dictionary<string, string>();
                //dictionary.Add("DisciplineCode", queryStr["DisciplineCode"]);

                //string max = queryStr["max"];
                //string offset = queryStr["offset"];
                //string o_option = queryStr["o_option"];
                //string o_desc = queryStr["o_desc"];

                ProgressTypeMgr progressTypeMgr = new ProgressTypeMgr();
                result = progressTypeMgr.ListProgressType(WebOperationContext.Current.IncomingRequest.UriTemplateMatch.QueryParameters);
                return result;
            }
            catch (Exception ex)
            {
                // Log Exception
                ExceptionHelper.logException(ex);
                result.IsSuccessful = false;
                result.ErrorMessage = ex.Message;
                return result;
            }
        }