You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
501 B
19 lines
501 B
using CustomerPortalV2.Common.Configs;
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
namespace CustomerPortalV2.Common.Helper
|
|
{
|
|
public static class Utilities
|
|
{
|
|
public static string GetIpAddressv2(HttpContext httpContext)
|
|
{
|
|
var ipDetails = httpContext.Connection.RemoteIpAddress;
|
|
return ipDetails.ToString();
|
|
}
|
|
|
|
public static string ReadAppSettings(string key)
|
|
{
|
|
return ConfigurationManager.AppSettings[key];
|
|
}
|
|
}
|
|
}
|