internal IEnumerable <TDto> RetrieveAllSetupMenu <TDto>(IDataConverter <SetupMenuData, TDto> converter)
            where TDto : class
        {
            ArgumentValidator.IsNotNull("converter", converter);
            ISetupMenuService service = UnitOfWork.GetService <ISetupMenuService>();

            var query = service.GetAll();

            if (query.HasResult)
            {
                return(query.DataToDtoList(converter));
            }

            return(null);
        }
        internal IList <BindingListItem> GetBindingList()
        {
            List <BindingListItem> dataSource = new List <BindingListItem>();
            ISetupMenuService      service    = UnitOfWork.GetService <ISetupMenuService>();
            var query = service.GetAll();

            if (query.HasResult)
            {
                foreach (SetupMenuData data in query.DataList)
                {
                    dataSource.Add(new BindingListItem(data.Id, data.Name));
                }
            }

            return(dataSource);
        }