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 GuptaRank #805 · 2.9K reputationPosted Mar 4, 2020, 3:25 AM EST
Laxmidhar SahooRank #383 · 6.6K reputationPosted Mar 3, 2020, 6:15 PM EST
Guest User96 reputationPosted Mar 3, 2020, 7:41 PM EST