23 lines
520 B
C#
23 lines
520 B
C#
using Microsoft.AspNetCore.Http;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Mini.Web.WebHelper
|
|
{
|
|
public class MvcContext
|
|
{
|
|
public static IHttpContextAccessor Accessor;
|
|
public static ILoginHelper loginhelper;
|
|
public static HttpContext GetContext()
|
|
{
|
|
return Accessor.HttpContext;
|
|
}
|
|
public static ILoginHelper GetLoginHelper()
|
|
{
|
|
return loginhelper;
|
|
}
|
|
}
|
|
}
|