using System.Linq; using Application.Domain.Entities; using Application.Models; using Infrastructure.Application; using Infrastructure.Data; using Infrastructure.Web.Mvc; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace IoTCenter.Areas.Admin.Controllers { [Authorize] [Area(nameof(Admin))] public class GlobalSceneController : CrudController, EditGlobalSceneModel, EditGlobalSceneModel> { public GlobalSceneController(IRepository repo) : base(repo) { } public override IQueryable Query(PagedListModel model, IQueryable query) { return query.Where(o => o.NodeId == null); } } }