The InformationModel class

The model for this application is pretty straightforward. All this will do is expose the values obtained in our controller and provide the view access to these values. To add the model, right-click the Models folder and add a new class called InformationModel:

public class InformationModel { public string OperatingSystem { get; set; } public string InfoTitle { get; set; } public string FrameworkDescription { get; set; } public string OSArchitecture { get; set; } public string ProcessArchitecture { get; set; } public string Memory { get; set; } public string IPAddressString { get; set; } public string WeatherBy { get; set; } public string CurrentTemperature { get; set; } public string CurrentIcon { get; set; } public ...

Get C# 7 and .NET Core 2.0 Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.