private void BindData()
        {
            SendedMessageQuery query = new SendedMessageQuery();

            query.UserName  = "******";
            query.SortBy    = messagesList.SortOrderBy;
            query.PageIndex = pager.PageIndex;
            query.PageSize  = pager.PageSize;
            if (messagesList.SortOrder.ToLower() == "desc")
            {
                query.SortOrder = SortAction.Desc;
            }
            DbQueryResult sendedMessages = NoticeHelper.GetSendedMessages(query);

            messagesList.DataSource = sendedMessages.Data;
            messagesList.DataBind();
            pager.TotalRecords  = sendedMessages.TotalRecords;
            pager1.TotalRecords = sendedMessages.TotalRecords;
        }