PTMagic/Monitor/ViewComponents/PairIconViewComponent.cs

18 lines
480 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
namespace Monitor.ViewComponents {
public class PairIconViewComponent :ViewComponent {
public async Task<IViewComponentResult> InvokeAsync(Core.Main.DataObjects.PTMagicData.MarketPairSummary mps) {
IViewComponentResult result = null;
await Task.Run(() => {
result = View(mps);
});
return result;
}
}
}