|
public IActionResult Index()
{
ViewBag.datas = GetCardsData();
return View();
}
public List<CardData> GetCardsData()
{
List<CardData> appData = new List<CardData>();
appData.Add(new CardData{ Title = "Explosion of Betelgeuse Star", Assignee = "Assignee one", Avatar = "A1", Color = "#33ccc9"});
appData.Add(new CardData{ Title = "Thule Air Crash Report", Assignee = "Assignee two", Avatar = "A2", Color = "#ffd600"});
appData.Add(new CardData{ Title = "Blue Moon Eclipse", Assignee = "Assignee three", Avatar = "A3", Color = "#cc0000"});
appData.Add(new CardData{ Title = "Meteor Showers in 2018", Assignee = "Assignee four", Avatar = "A4", Color = "#990099"});
appData.Add(new CardData{ Title = "Milky Way as Melting pot", Assignee = "Assignee five", Avatar = "A5", Color = "#66cc33"});
return appData;
} |