public async Task <PropertiesModel> GetStockDataById(int id) { //Calling an external layer to get the API info by Id PropertiesObject blobData = await _externalApi.GetStockDataById(id); //Calling the metod to cast the properties into the object that we'll return return(CastStockData(blobData)); }
public async Task <PropertiesModel> GetStockDataById(int id) { PropertiesObject blobData = await _externalApi.GetStockDataById(id); return(CastStockData(blobData)); }