Czesc czy mozliwe jest DI do metody w controllerze ? Czyli chodzi o takei cos
[Route("example")]
[HttpGet]
public IHttpActionResult GetChartsByFilter(SomeService SomeService )
{
return Json(SomeService .TotalCount(1));
}
Wyczytalem cos o atrybucie FromServices, ale nie znajduje mi taki namespace.
Aplikacji w asp .net webapi
Pozdrawiam