I have an API controller and GET method like this :
public IEnumerable<CountryDTO> GetContries(string sortOrder, string searchString)
{
return countryRepository.GetCos(sortOrder, searchString);
}
but when I try to get url api/countries I`ve got an error like: The requested resource does not support http method 'GET'.
How to fix this problem?