I've got error:
The Type or Namespace name "HttpConfiguration" is missing
Honestly i dont konow what to do now.. I have download all files from server once again and nothing.. Please, help :/
namespace Europilka
{
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{id}",
defaults: new { id = RouteParameter.Optional }
);
}
}
}
And code is C#. The error is appearing in lines "(HttpConfiguration config)" and "id = RouteParameter.Optional".