public ActionResult ListFile(CommonFilterData filter)
        {
            var vm = CreateViewData <VMXFileList>();

            switch (filter.Action)
            {
            case "trash":
                var msg = XFile.DeleteByID(filter.ObjIDList.ToArray());
                if (!msg.Error)
                {
                    return(ListFile(string.Format("Items with id [{0}] have been deleted!", String.Join(",", filter.ObjIDList))));
                }
                vm.Msg   = msg.Body;
                vm.Error = msg.Error;
                break;
            }

            vm.FileList = XFile.ListAllData();
            return(View(vm));
        }