You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iot/projects/IoTCenter/Areas/Admin/Controllers/IoT/GlobalSceneController.cs

25 lines
780 B

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<Scene, PagedListModel<EditGlobalSceneModel>, EditGlobalSceneModel, EditGlobalSceneModel>
{
public GlobalSceneController(IRepository<Scene> repo) : base(repo)
{
}
public override IQueryable<Scene> Query(PagedListModel<EditGlobalSceneModel> model, IQueryable<Scene> query)
{
return query.Where(o => o.NodeId == null);
}
}
}