Aspdotnet core webapi formatters

Apr 11 2019 6:27 PM
This is code:
SupportedMediaTypes.Add(MediaTypeHeaderValue.Parse("text/vcard")); 
 
I take a error CS 1503

Argument 1: cannot convert from 'System.Net.Http.Headers.MediaTypeHeaderValue' to 'Microsoft.Net.Http.Headers.MediaTypeHeaderValue'

 

Answers (1)