using System; using System.Collections.Generic; using Application.Domain.Entities; using Infrastructure.Application; using Infrastructure.Data; using Infrastructure.Web.Mvc; using Microsoft.AspNetCore.Mvc; using SPService.Applicaiton.Models; namespace FBeeService.Areas.Controllers { [Area("Admin")] public class HomeController : CrudController, EditGatewayModel, EditGatewayModel> { private readonly DeviceService _spService; public HomeController(IRepository repo, DeviceService spService) : base(repo) { this._spService = spService; } public override IActionResult Add(EditGatewayModel model) { var result = base.Add(model); this._spService.Notify(); return result; } public override IActionResult Edit(EditGatewayModel model) { var result = base.Edit(model); this._spService.Notify(); return result; } public override IActionResult Delete(List list) { var result = base.Delete(list); this._spService.Notify(); return result; } } }