public ActionResult WithdrawnInboxHistory(string id)
        {
            //Used for display log text
            logMessage = new StringBuilder();
            try
            {
                logMessage.AppendLine(string.Format(CultureInfo.InvariantCulture, DecisionPointR.logmessagestart, DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name));
                //Create Object for Get User DashBoard Details
                objDecisionPointEngine = new DecisionPointEngine();
                objUserDashBoard       = new UserDashBoard();
                if (!string.IsNullOrEmpty(Convert.ToString(Session["UserId"], CultureInfo.InvariantCulture)))
                {
                    userId    = Convert.ToInt32(HttpContext.Session["UserId"], CultureInfo.InvariantCulture);
                    companyId = Convert.ToString(HttpContext.Session["CompanyId"], CultureInfo.InvariantCulture);
                    objUserDashBoard.HistoryDetails = objDecisionPointEngine.GetWithdrawnHistoryDetails(userId, DecisionPointR.incomming, companyId, id);

                    if (objUserDashBoard.HistoryDetails != null)
                    {
                        #region groupby category
                        string doctype = string.Empty;
                        int    count   = 0;

                        IList <UserDashBoardResponse> historydetails           = new List <UserDashBoardResponse>().ToList();
                        UserDashBoardResponse         objUserDashBoardResponse = new UserDashBoardResponse()
                        {
                            reqDocType          = string.Empty,
                            title               = string.Empty,
                            commFromPersonName  = string.Empty,
                            commFromComapnyName = string.Empty,
                            receviedDate        = System.DateTime.Now.Date,
                            accecpted           = false,
                            assesmentStatus     = string.Empty,
                            docTypeId           = 0,
                            tableId             = 0,
                            reference           = string.Empty,
                            timeSpend           = string.Empty,
                            deliveredUserId     = 0,
                            CompanyId           = string.Empty,
                            docSeqno            = 0,
                            policyNo            = string.Empty,
                            completeDate        = System.DateTime.Now.Date,
                            versionno           = 0,
                            effectiveDate       = System.DateTime.Now.Date
                        };
                        var col = objUserDashBoard.HistoryDetails;
                        historydetails = col.ToList();

                        foreach (var list in objUserDashBoard.HistoryDetails.ToList())
                        {
                            if (!string.IsNullOrEmpty(doctype))
                            {
                                if (list.reqDocType != doctype)
                                {
                                    historydetails.Insert(count, objUserDashBoardResponse);
                                }
                            }
                            doctype = list.reqDocType;
                            count++;
                        }
                        objUserDashBoard.HistoryDetails = historydetails;
                        #endregion


                        objUserDashBoard.PageSize = objUserDashBoard.HistoryDetails.Count();
                    }
                    objUserDashBoard.RowperPage = Convert.ToInt32(ConfigurationManager.AppSettings["rowperpage"], CultureInfo.InvariantCulture);

                    objUserDashBoard.GroupDetails = objDecisionPointEngine.GetGroup(Shared.User.ToLower(CultureInfo.InvariantCulture), companyId);
                    //set confgi setting
                    ConfiguratonSettingRequest objConfiguratonSettingRequest = new ConfiguratonSettingRequest();
                    objConfiguratonSettingRequest = objDecisionPointEngine.GetConfigSetting(companyId);
                    if (!object.Equals(objConfiguratonSettingRequest, null))
                    {
                        objUserDashBoard.IsICApply     = objConfiguratonSettingRequest.IsIc;
                        objUserDashBoard.IsVendorApply = objConfiguratonSettingRequest.IsVendor;
                    }
                    //assign the view model
                    ViewData.Model  = objUserDashBoard;
                    objactionresult = View(objUserDashBoard);
                }
                else
                {
                    objactionresult = RedirectToAction("Login", "Login");
                }
            }
            catch (Exception ex)
            {
                log.ErrorFormat(DecisionPointR.logmessageerror, ex.ToString(), typeof(UserDashBoardController).Name, MethodBase.GetCurrentMethod().Name);
            }
            finally
            {
                logMessage.AppendLine(string.Format(CultureInfo.InvariantCulture, DecisionPointR.logmessagend, MethodBase.GetCurrentMethod().Name));
                log.Info(logMessage.ToString());
            }
            return(objactionresult);
        }