//using MEU.API.Models;
//using MEU.API.Providers;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc.Filters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;

namespace MEU.API.Utils
{
    public class SessionHelper 
    {        

        //protected static user _currentUser = new user();
    
        //public static user currentUser
        //{
        //    get
        //    {
        //        try
        //        {
        //            IHttpContextAccessor _httpContextAccessor = new HttpContextAccessor();
        //            var username = _httpContextAccessor.HttpContext.User.Identity.Name;
        //            userProvider user = new userProvider();
        //            return user.GetUserByUsername(username);
        //        }
        //        catch(Exception ex)
        //        {
        //            Logs.LoggerFactory.ErrorLog(ex.ToString(), "Exception");
        //            return null; 
        //        }
        //    }
        //    set
        //    {
        //        _currentUser = value;
        //    }
        //}
    }
}
