21 lines
434 B
C#
21 lines
434 B
C#
using Microsoft.AspNetCore.Http;
|
|
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MarcoBMS.Utility
|
|
{
|
|
public class SessionUtil
|
|
{
|
|
public bool SetSession(string key, object obj )
|
|
{
|
|
// HttpContext.Session.SetString(key, JsonConvert.SerializeObject(obj));
|
|
return true;
|
|
}
|
|
}
|
|
|
|
}
|