I have the code below to set the HttpContext.Current. It works on Windows but in Mac I encounter the following errors:
'HttpContext' is a type, which is not valid in the given context
And a message when pointing the cursor to HttpContext
Inconsistent body style: use expression body
- public BrandModel Brand
- {
- get{
- return (Get
( "Brand")); - }
- set{
- HttpContext.Current.Session["Brand"] = value;
- }
- }
What should I do?
Ashutosh GuptaPosted Mar 4, 2020, 8:25 AM
Guest UserPosted Mar 4, 2020, 12:41 AM
Laxmidhar SahooPosted Mar 3, 2020, 11:15 PM