using System.Collections.Generic; using Luticate2.Utils.Dbo; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.SignalR.Infrastructure; namespace Luticate2.Utils.Controllers { public abstract class LuController : Controller { protected IConnectionManager ConnectionManager { get; set; } protected IDictionary LuItems => (IDictionary) HttpContext.Items["luticateItems"]; // protected UsersDbo LuCurrentUser => (UsersDbo) LuItems["luticateItems"]; protected T Handle(LuResult result) { if (result) { return result.Data; } return default(T);//TODO } } }