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; using Microsoft.EntityFrameworkCore; using System.Linq; namespace IoTNode.Areas.Admin.Controllers { [Authorize] [Area(nameof(Admin))] public class SceneController : CrudController, DisplaySceneModel, EditSceneModel> { private readonly IRepository _nodeRepo; private readonly IRepository _repo; private readonly AjaxController _ajax; public SceneController(IRepository nodeRepo, IRepository repo, AjaxController ajax) : base(repo) { this._repo = repo; this._nodeRepo = nodeRepo; this._ajax = ajax; } public override IQueryable Include(IQueryable query) { return query.Include(o => o.Node); } } }