Ejemplo n.º 1
0
        /// <summary>
        /// This method will call the UserInfoResource Resource class method for getting the tribute Listing for the
        /// Business user.
        /// Added By Parul Jain
        /// </summary>
        /// <param name="objTributeParam">This is the SearchTribute object which contain the Parameter 
        /// to get the tribute list - Sort Order, Tribuet Type and User ID</param>
        /// <returns>This method will return the List of Tribute</returns>
        public List<SearchTribute> GetBusinessUserTributeList(SearchTribute objTributeParam, string ApplicationType)
        {
            try
            {
                UserInfoResource objUser = new UserInfoResource();

                // Replace wildcard character (*, ?) by the (% and _)
                if (objTributeParam.SearchString != "")
                {
                    String searchString = objTributeParam.SearchString.Replace('*', '%');

                    if (!searchString.Contains("%"))
                    {
                        string newsearchString = "%" + searchString + "%";
                        searchString = newsearchString;
                    }

                    objTributeParam.ChangeSearchString = searchString.Replace('?', '_');
                }
                else
                {
                    objTributeParam.ChangeSearchString = "%";
                }

                return objUser.GetBusinessUserTributeList(objTributeParam, ApplicationType);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }