Ejemplo n.º 1
0
        public ActionResult SearchBranch()
        {
            Logger.Info(_logMsg.Clear().SetPrefixMsg("InitSearch Branch").ToInputLogString());

            try
            {
                _commonFacade = new CommonFacade();

                BranchViewModel branchVM = new BranchViewModel();
                branchVM.SearchFilter = new BranchSearchFilter
                {
                    BranchName = string.Empty,
                    JsonBranch = string.Empty,
                    PageNo     = 1,
                    PageSize   = _commonFacade.GetPageSizeStart(),
                    SortField  = "BranchId",
                    SortOrder  = "DESC"
                };

                ViewBag.PageSize     = branchVM.SearchFilter.PageSize;
                ViewBag.PageSizeList = _commonFacade.GetPageSizeList();
                ViewBag.Message      = string.Empty;

                return(PartialView("~/Views/Branch/_BranchSearch.cshtml", branchVM));
            }
            catch (Exception ex)
            {
                Logger.Error("Exception occur:\n", ex);
                Logger.Info(_logMsg.Clear().SetPrefixMsg("InitSearch Branch").Add("Error Message", ex.Message).ToFailLogString());
                return(Error(new HandleErrorInfo(ex, this.ControllerContext.RouteData.Values["controller"].ToString(),
                                                 this.ControllerContext.RouteData.Values["action"].ToString())));
            }
        }
Ejemplo n.º 2
0
        public ActionResult Search()
        {
            Logger.Info(_logMsg.Clear().SetPrefixMsg("InitSearch Pool").ToInputLogString());

            try
            {
                _commonFacade = new CommonFacade();

                PoolViewModel poolVM = new PoolViewModel();
                poolVM.SearchFilter = new PoolSearchFilter
                {
                    PoolName  = string.Empty,
                    PoolDesc  = string.Empty,
                    Email     = string.Empty,
                    PageNo    = 1,
                    PageSize  = _commonFacade.GetPageSizeStart(),
                    SortField = "PoolId",
                    SortOrder = "DESC"
                };

                ViewBag.PageSize     = poolVM.SearchFilter.PageSize;
                ViewBag.PageSizeList = _commonFacade.GetPageSizeList();
                ViewBag.Message      = string.Empty;

                return(View(poolVM));
            }
            catch (Exception ex)
            {
                Logger.Error("Exception occur:\n", ex);
                Logger.Info(_logMsg.Clear().SetPrefixMsg("InitSearch Pool").Add("Error Message", ex.Message).ToFailLogString());
                return(Error(new HandleErrorInfo(ex, this.ControllerContext.RouteData.Values["controller"].ToString(),
                                                 this.ControllerContext.RouteData.Values["action"].ToString())));
            }
        }
Ejemplo n.º 3
0
        public ActionResult Search()
        {
            Logger.Info(_logMsg.Clear().SetPrefixMsg("InitSearch News").ToInputLogString());

            try
            {
                _commonFacade = new CommonFacade();

                NewsViewModel newsVM = new NewsViewModel();
                newsVM.SearchFilter = new NewsSearchFilter
                {
                    Topic     = string.Empty,
                    PageNo    = 1,
                    PageSize  = _commonFacade.GetPageSizeStart(),
                    SortField = "AnnounceDate",
                    SortOrder = "DESC"
                };

                var statusList = _commonFacade.GetStatusSelectList(Resource.Ddl_Status_All, Constants.ApplicationStatus.All);
                newsVM.StatusList = new SelectList((IEnumerable)statusList, "Key", "Value", string.Empty);

                ViewBag.PageSize     = newsVM.SearchFilter.PageSize;
                ViewBag.PageSizeList = _commonFacade.GetPageSizeList();
                ViewBag.Message      = string.Empty;

                return(View(newsVM));
            }
            catch (Exception ex)
            {
                Logger.Error("Exception occur:\n", ex);
                Logger.Info(_logMsg.Clear().SetPrefixMsg("InitSearch News").Add("Error Message", ex.Message).ToFailLogString());
                return(Error(new HandleErrorInfo(ex, this.ControllerContext.RouteData.Values["controller"].ToString(),
                                                 this.ControllerContext.RouteData.Values["action"].ToString())));
            }
        }
Ejemplo n.º 4
0
        public ActionResult Search()
        {
            Logger.Info(_logMsg.Clear().SetPrefixMsg("InitSearch Job").ToInputLogString());
            try
            {
                _commonFacade   = new CommonFacade();
                _commPoolFacade = new CommPoolFacade();

                ViewBag.jobstatus = _commPoolFacade.GetJobStatusSelectList(Resource.Ddl_Status_All, Constants.ApplicationStatus.All);
                ViewBag.channel   = _commPoolFacade.GetChannelWithEmailSelectList(Resource.Ddl_Status_All, Constants.ApplicationStatus.All);
                ViewBag.srstatus  = _commPoolFacade.GetSRStatusSelectList(Resource.Ddl_Status_All, Constants.ApplicationStatus.All);

                JobViewModel jobVM = new JobViewModel();
                jobVM.SearchFilter = new CommPoolSearchFilter
                {
                    FirstName = string.Empty,
                    LastName  = string.Empty,
                    JobStatus = null,
                    Channel   = null,
                    Subject   = string.Empty,
                    From      = string.Empty,
                    DateFrom  = string.Empty,
                    DateTo    = string.Empty,
                    ActionBy  = string.Empty,
                    SRId      = string.Empty,
                    SRStatus  = null,
                    CreatorSR = string.Empty,
                    OwnerSR   = string.Empty,
                    User      = null,
                    PageNo    = 1,
                    PageSize  = _commonFacade.GetPageSizeStart(),
                    SortField = "JobId",
                    SortOrder = "DESC"
                };

                var defSearch = _commonFacade.GetShowhidePanelByUserId(this.UserInfo, Constants.Page.CommunicationPage);

                if (defSearch != null)
                {
                    jobVM.IsSelected = defSearch.IsSelectd ? "1" : "0";
                }
                else
                {
                    jobVM.IsSelected = "0";
                }

                ViewBag.PageSize     = jobVM.SearchFilter.PageSize;
                ViewBag.PageSizeList = _commonFacade.GetPageSizeList();
                ViewBag.Message      = string.Empty;

                return(View(jobVM));
            }
            catch (Exception ex)
            {
                Logger.Error("Exception occur:\n", ex);
                Logger.Info(_logMsg.Clear().SetPrefixMsg("InitSearch Job").Add("Error Message", ex.Message).ToFailLogString());
                return(Error(new HandleErrorInfo(ex, this.ControllerContext.RouteData.Values["controller"].ToString(),
                                                 this.ControllerContext.RouteData.Values["action"].ToString())));
            }
        }
Ejemplo n.º 5
0
        public ActionResult List()
        {
            Logger.Info(_logMsg.Clear().SetPrefixMsg("InitSearch ActivityLog").ToInputLogString());

            try
            {
                CustomerInfoViewModel custInfoVM = new CustomerInfoViewModel();

                if (TempData["CustomerInfo"] != null)
                {
                    custInfoVM = (CustomerInfoViewModel)TempData["CustomerInfo"];
                    TempData["CustomerInfo"] = custInfoVM; // Keep for change Tab
                }
                else
                {
                    return(RedirectToAction("Search", "Customer"));
                }

                ActivityViewModel activityVM = new ActivityViewModel();
                if (custInfoVM.CustomerId != null)
                {
                    activityVM.CustomerInfo = custInfoVM;
                }

                _commonFacade   = new CommonFacade();
                _activityFacade = new ActivityFacade();

                var subsType = custInfoVM.SubscriptType;

                var today                  = DateTime.Today;
                var month                  = new DateTime(today.Year, today.Month, 1);
                var numMonthsActivity      = _commonFacade.GetNumMonthsActivity();
                var activityStartDateValue = month.AddMonths(-1 * numMonthsActivity); //"2015-01-01".ParseDateTime("yyyy-MM-dd");

                activityVM.SearchFilter = new ActivitySearchFilter
                {
                    ActivityStartDateTime = activityStartDateValue.FormatDateTime(Constants.DateTimeFormat.DefaultFullDateTime),
                    ActivityEndDateTime   = DateTime.Now.FormatDateTime(Constants.DateTimeFormat.DefaultFullDateTime),
                    CardNo       = custInfoVM.CardNo,
                    SubsTypeCode = subsType != null ? subsType.SubscriptTypeCode : null,
                    PageNo       = 1,
                    PageSize     = _commonFacade.GetPageSizeStart(),
                    SortField    = "ActivityID",
                    SortOrder    = "DESC"
                };

                ViewBag.PageSize     = activityVM.SearchFilter.PageSize;
                ViewBag.PageSizeList = _commonFacade.GetPageSizeList();
                ViewBag.Message      = string.Empty;

                return(View(activityVM));
            }
            catch (Exception ex)
            {
                Logger.Error("Exception occur:\n", ex);
                Logger.Info(_logMsg.Clear().SetPrefixMsg("InitSearch ActivityLog").Add("Error Message", ex.Message).ToFailLogString());
                return(Error(new HandleErrorInfo(ex, this.ControllerContext.RouteData.Values["controller"].ToString(),
                                                 this.ControllerContext.RouteData.Values["action"].ToString())));
            }
        }
Ejemplo n.º 6
0
        public ActionResult List(int?customerId = null)
        {
            Logger.Info(_logMsg.Clear().SetPrefixMsg("List SR").ToInputLogString());

            try
            {
                CustomerInfoViewModel custInfoVM = new CustomerInfoViewModel();
                ViewBag.userId = this.UserInfo.UserId;

                if (TempData["CustomerInfo"] != null)
                {
                    custInfoVM = (CustomerInfoViewModel)TempData["CustomerInfo"];
                    TempData["CustomerInfo"] = custInfoVM; // keep for change Tab
                }
                else
                {
                    return(RedirectToAction("Search", "Customer"));
                }

                _commonFacade   = new CommonFacade();
                _customerFacade = new CustomerFacade();

                SrViewModel srVM = new SrViewModel();
                srVM.CustomerInfo = custInfoVM;

                if (custInfoVM.CustomerId.HasValue)
                {
                    // SR list
                    srVM.SearchFilter = new SrSearchFilter
                    {
                        CustomerId = custInfoVM.CustomerId.Value,
                        PageNo     = 1,
                        PageSize   = _commonFacade.GetPageSizeStart(),
                        SortField  = "CreateDate",
                        SortOrder  = "ASC"
                    };

                    //srVM.SrList = _customerFacade.GetSrList(srVM.SearchFilter);
                    ViewBag.PageSize     = srVM.SearchFilter.PageSize;
                    ViewBag.PageSizeList = _commonFacade.GetPageSizeList();
                    ViewBag.Message      = string.Empty;
                }

                return(View(srVM));
            }
            catch (Exception ex)
            {
                Logger.Error("Exception occur:\n", ex);
                Logger.Info(_logMsg.Clear().SetPrefixMsg("List SR").Add("Error Message", ex.Message).ToFailLogString());
                return(Error(new HandleErrorInfo(ex, this.ControllerContext.RouteData.Values["controller"].ToString(),
                                                 this.ControllerContext.RouteData.Values["action"].ToString())));
            }
        }
Ejemplo n.º 7
0
        public ActionResult List(int?customerId = null)
        {
            try
            {
                CustomerInfoViewModel custInfoVM = new CustomerInfoViewModel();

                if (TempData["CustomerInfo"] != null)
                {
                    custInfoVM = (CustomerInfoViewModel)TempData["CustomerInfo"];
                    TempData["CustomerInfo"] = custInfoVM; // Keep for change Tab
                }
                else
                {
                    return(RedirectToAction("Search", "Customer"));
                }

                Logger.Info(_logMsg.Clear().SetPrefixMsg("List Document").Add("CustomerId", custInfoVM.CustomerId).ToInputLogString());

                _commonFacade   = new CommonFacade();
                _customerFacade = new CustomerFacade();
                DocumentViewModel documentVM = new DocumentViewModel();
                documentVM.CustomerInfo = custInfoVM;

                if (custInfoVM.CustomerId.HasValue)
                {
                    // Attachment list
                    documentVM.SearchFilter = new AttachmentSearchFilter
                    {
                        CustomerId = custInfoVM.CustomerId.Value,
                        PageNo     = 1,
                        PageSize   = _commonFacade.GetPageSizeStart(),
                        SortField  = "ExpiryDate",
                        SortOrder  = "DESC"
                    };

                    documentVM.AttachmentList = _customerFacade.GetAttachmentList(documentVM.SearchFilter);
                    ViewBag.CurrentUserId     = this.UserInfo.UserId; // for check btnEdit btnDelete
                    ViewBag.PageSize          = documentVM.SearchFilter.PageSize;
                    ViewBag.PageSizeList      = _commonFacade.GetPageSizeList();
                    ViewBag.Message           = string.Empty;
                }

                return(View(documentVM));
            }
            catch (Exception ex)
            {
                Logger.Error("Exception occur:\n", ex);
                Logger.Info(_logMsg.Clear().SetPrefixMsg("List Customer").Add("Error Message", ex.Message).ToFailLogString());
                return(Error(new HandleErrorInfo(ex, this.ControllerContext.RouteData.Values["controller"].ToString(),
                                                 this.ControllerContext.RouteData.Values["action"].ToString())));
            }
        }
Ejemplo n.º 8
0
        public ActionResult List(string encryptedString)
        {
            int?customerId = encryptedString.ToCustomerId();

            Logger.Info(_logMsg.Clear().SetPrefixMsg("List Contact").ToInputLogString());

            try
            {
                if (customerId == null)
                {
                    return(RedirectToAction("Search", "Customer"));
                }

                Logger.Info(_logMsg.Clear().SetPrefixMsg("List Contact").Add("CustomerId", customerId).ToInputLogString());

                _commonFacade   = new CommonFacade();
                _customerFacade = new CustomerFacade();
                CustomerContactViewModel contactVM  = new CustomerContactViewModel();
                CustomerInfoViewModel    custInfoVM = this.MappingCustomerInfoView(customerId.Value);
                contactVM.CustomerInfo = custInfoVM;

                if (custInfoVM.CustomerId.HasValue)
                {
                    // Contact list
                    contactVM.SearchFilter = new ContactSearchFilter
                    {
                        CustomerId = custInfoVM.CustomerId.Value,
                        PageNo     = 1,
                        PageSize   = _commonFacade.GetPageSizeStart(),
                        SortField  = "CardNo",
                        SortOrder  = "ASC"
                    };

                    contactVM.ContactList = _customerFacade.GetContactList(contactVM.SearchFilter);
                    ViewBag.PageSize      = contactVM.SearchFilter.PageSize;
                    ViewBag.PageSizeList  = _commonFacade.GetPageSizeList();
                    ViewBag.Message       = string.Empty;
                }

                return(View(contactVM));
            }
            catch (Exception ex)
            {
                Logger.Error("Exception occur:\n", ex);
                Logger.Info(_logMsg.Clear().SetPrefixMsg("List Contact").Add("Error Message", ex.Message).ToFailLogString());
                return(Error(new HandleErrorInfo(ex, this.ControllerContext.RouteData.Values["controller"].ToString(),
                                                 this.ControllerContext.RouteData.Values["action"].ToString())));
            }
        }
Ejemplo n.º 9
0
        public ActionResult Search()
        {
            Logger.Info(_logMsg.Clear().SetPrefixMsg("InitSearch AuditLog").ToInputLogString());
            try
            {
                _commonFacade   = new CommonFacade();
                _auditlogFacade = new AuditLogFacade();
                AuditLogViewModel auditlogVM = new AuditLogViewModel();

                auditlogVM.SearchFilter = new AuditLogSearchFilter
                {
                    FirstName = string.Empty,
                    LastName  = string.Empty,
                    DateFrom  = string.Empty,
                    DateTo    = string.Empty,
                    Module    = string.Empty,
                    Action    = string.Empty,
                    Status    = null,
                    PageNo    = 1,
                    PageSize  = _commonFacade.GetPageSizeStart(),
                    SortField = "AuditLogId",
                    SortOrder = "DESC"
                };

                var moduleList = _auditlogFacade.GetModule(Resource.Ddl_Status_All, Constants.ApplicationStatus.All);
                ViewBag.Module = new SelectList((IEnumerable)moduleList, "Key", "Value", string.Empty);

                var actionList = _auditlogFacade.GetAction(Resource.Ddl_Status_All, Constants.ApplicationStatus.All);
                ViewBag.Action = new SelectList((IEnumerable)actionList, "Key", "Value", string.Empty);

                var statusList = _auditlogFacade.GetStatusSelectList(Resource.Ddl_Status_All, Constants.ApplicationStatus.All);
                ViewBag.Status = new SelectList((IEnumerable)statusList, "Key", "Value", string.Empty);

                ViewBag.PageSize     = auditlogVM.SearchFilter.PageSize;
                ViewBag.PageSizeList = _commonFacade.GetPageSizeList();
                ViewBag.Message      = string.Empty;

                return(View(auditlogVM));
            }
            catch (Exception ex)
            {
                Logger.Error("Exception occur:\n", ex);
                Logger.Info(_logMsg.Clear().SetPrefixMsg("InitSearch AuditLog").Add("Error Message", ex.Message).ToFailLogString());
                return(Error(new HandleErrorInfo(ex, this.ControllerContext.RouteData.Values["controller"].ToString(),
                                                 this.ControllerContext.RouteData.Values["action"].ToString())));
            }
        }
Ejemplo n.º 10
0
        public ActionResult Search()
        {
            Logger.Info(_logMsg.Clear().SetPrefixMsg("InitSearch Product").ToInputLogString());

            try
            {
                _commonFacade   = new CommonFacade();
                _commPoolFacade = new CommPoolFacade();

                var statusList = _commPoolFacade.GetSRStatusSelectList(Resource.Ddl_Status_All, Constants.ApplicationStatus.All);
                ViewBag.srstatus = new SelectList((IEnumerable)statusList, "Key", "Value", string.Empty);

                ProductViewModel productVM = new ProductViewModel();
                productVM.SearchFilter = new ProductSearchFilter
                {
                    ProductGroupId = null,
                    ProductId      = null,
                    CampaignId     = null,
                    TypeId         = null,
                    AreaId         = null,
                    SubAreaId      = null,
                    FromSRStatus   = null,
                    ToSRStatus     = null,
                    PageNo         = 1,
                    PageSize       = _commonFacade.GetPageSizeStart(),
                    SortField      = "ProductGroup",
                    SortOrder      = "DESC"
                };

                ViewBag.PageSize     = productVM.SearchFilter.PageSize;
                ViewBag.PageSizeList = _commonFacade.GetPageSizeList();
                ViewBag.Message      = string.Empty;

                return(View(productVM));
            }
            catch (Exception ex)
            {
                Logger.Error("Exception occur:\n", ex);
                Logger.Info(_logMsg.Clear().SetPrefixMsg("InitSearch Product").Add("Error Message", ex.Message).ToFailLogString());
                return(Error(new HandleErrorInfo(ex, this.ControllerContext.RouteData.Values["controller"].ToString(),
                                                 this.ControllerContext.RouteData.Values["action"].ToString())));
            }
        }
Ejemplo n.º 11
0
        public ActionResult List(string encryptedString)
        {
            int?customerId = encryptedString.ToCustomerId();

            Logger.Info(_logMsg.Clear().SetPrefixMsg("List ExistingProduct").Add("CustomerId", customerId).ToInputLogString());

            try
            {
                _commonFacade   = new CommonFacade();
                _customerFacade = new CustomerFacade();

                ExistingProductViewModel productVM  = new ExistingProductViewModel();
                CustomerInfoViewModel    custInfoVM = this.MappingCustomerInfoView(customerId.Value);
                productVM.CustomerInfo = custInfoVM;

                if (custInfoVM.CustomerId.HasValue)
                {
                    productVM.SearchFilter = new AccountSearchFilter
                    {
                        CustomerId = custInfoVM.CustomerId.Value,
                        PageNo     = 1,
                        PageSize   = _commonFacade.GetPageSizeStart(),
                        SortField  = "ProductGroup",
                        SortOrder  = "ASC"
                    };

                    productVM.AccountList = _customerFacade.GetAccountList(productVM.SearchFilter);
                    ViewBag.PageSize      = productVM.SearchFilter.PageSize;
                    ViewBag.PageSizeList  = _commonFacade.GetPageSizeList();
                    ViewBag.Message       = string.Empty;
                }

                return(View(productVM));
            }
            catch (Exception ex)
            {
                Logger.Error("Exception occur:\n", ex);
                Logger.Info(_logMsg.Clear().SetPrefixMsg("List ExistingProduct").Add("Error Message", ex.Message).ToFailLogString());
                return(Error(new HandleErrorInfo(ex, this.ControllerContext.RouteData.Values["controller"].ToString(),
                                                 this.ControllerContext.RouteData.Values["action"].ToString())));
            }
        }
Ejemplo n.º 12
0
        public ActionResult Index()
        {
            Logger.Info(_logMsg.Clear().SetPrefixMsg("Index").Add("CallId", this.CallId)
                        .Add("UserId", this.UserInfo.UserId).ToInputLogString());

            try
            {
                _newsFacade     = new NewsFacade();
                _userFacade     = new UserFacade();
                _commonFacade   = new CommonFacade();
                _customerFacade = new CustomerFacade();

                HomeViewModel homeVM = new HomeViewModel();
                homeVM.NewsUnreadSearchFilter = new NewsSearchFilter
                {
                    Topic     = string.Empty,
                    Status    = Constants.ApplicationStatus.Active.ToString(CultureInfo.InvariantCulture),
                    PageNo    = 1,
                    PageSize  = _commonFacade.GetPageSizeStart(),
                    SortField = "NewsId",
                    SortOrder = "DESC"
                };

                homeVM.NewsReadSearchFilter = new NewsSearchFilter
                {
                    Topic     = string.Empty,
                    Status    = Constants.ApplicationStatus.Active.ToString(CultureInfo.InvariantCulture),
                    PageNo    = 1,
                    PageSize  = _commonFacade.GetPageSizeStart(),
                    SortField = "NewsId",
                    SortOrder = "DESC"
                };

                homeVM.GroupSrSearchFilter = new SrSearchFilter
                {
                    PageNo    = 1,
                    PageSize  = _commonFacade.GetPageSizeStart(),
                    SortField = "CreateDate",
                    SortOrder = "ASC"
                };

                homeVM.IndividualSrSearchFilter = new SrSearchFilter
                {
                    FilterType = null,
                    PageNo     = 1,
                    PageSize   = _commonFacade.GetPageSizeStart(),
                    SortField  = "CreateDate",
                    SortOrder  = "ASC"
                };

                #region "News Unread"

                //homeVM.NewsUnreadSearchFilter.UserId = this.UserInfo.UserId;
                //homeVM.NewsUnreadList = _newsFacade.GetNewsUnreadList(homeVM.NewsUnreadSearchFilter);

                #endregion

                #region "News Read"

                //homeVM.NewsReadSearchFilter.UserId = this.UserInfo.UserId;
                //homeVM.NewsReadList = _newsFacade.GetNewsReadList(homeVM.NewsReadSearchFilter);

                #endregion

                #region "Group ServiceRequest"

                //var lstDummyUser = _userFacade.GetDummyUsers(this.UserInfo);
                //homeVM.GroupSrSearchFilter.OwnerList = lstDummyUser;
                //homeVM.GroupServiceRequestList = _customerFacade.GetSrList(homeVM.GroupSrSearchFilter);

                #endregion

                #region "Individual ServiceRequest"

                //var lstEmployeeUser = new List<UserEntity>();
                //lstEmployeeUser = _userFacade.GetEmployees(this.UserInfo);
                //lstEmployeeUser.Add(this.UserInfo); // Add current user
                //homeVM.IndividualSrSearchFilter.OwnerList = lstEmployeeUser;
                //homeVM.IndividualServiceRequestList = _customerFacade.GetSrList(homeVM.IndividualSrSearchFilter);

                #endregion

                ViewBag.NewsUnreadPageSize = homeVM.NewsUnreadSearchFilter.PageSize;
                ViewBag.NewsReadPageSize   = homeVM.NewsReadSearchFilter.PageSize;
                ViewBag.GroupPageSize      = homeVM.GroupSrSearchFilter.PageSize;
                ViewBag.IndyPageSize       = homeVM.IndividualSrSearchFilter.PageSize;

                var pageSizeList = _commonFacade.GetPageSizeList();
                ViewBag.NewsUnreadPageSizeList = pageSizeList;
                ViewBag.NewsReadPageSizeList   = pageSizeList;
                ViewBag.GroupPageSizeList      = pageSizeList;
                ViewBag.IndyPageSizeList       = pageSizeList;

                ViewBag.Message = string.Empty;

                return(View(homeVM));
            }
            catch (Exception ex)
            {
                Logger.Error("Exception occur:\n", ex);
                Logger.Info(_logMsg.Clear().SetPrefixMsg("Index").Add("Error Message", ex.Message).ToFailLogString());
                return(Error(new HandleErrorInfo(ex, this.ControllerContext.RouteData.Values["controller"].ToString(),
                                                 this.ControllerContext.RouteData.Values["action"].ToString())));
            }
        }