I am confused a bit about creating instance of generic object. I belive, that it supposed to be casted(somehow). In my code I am calling a service generic method:
jockey = await _scrapDataService.ScrapSingleJockeyPlAsync<LoadedJockey>(id, jobType);
And in my service method I want to achieve this, but I am not sure how to do it:
public Task<T> ScrapGenericObject<T>(int id, string jobType)
{
var someObject = new T();
return someObject;
}