Use properties in machine photo viewmodel so annotations are used.

This commit is contained in:
2019-05-27 15:50:26 +01:00
parent e16daed730
commit 662e5de164
2 changed files with 6 additions and 6 deletions

View File

@@ -5,12 +5,12 @@ namespace cicm_web.Areas.Admin.Models
{
public class MachinePhotoViewModel : BaseViewModel<Guid>
{
public string Author;
public string License;
public string Machine;
public string Author { get; set; }
public string License { get; set; }
public string Machine { get; set; }
[DisplayName("Uploaded")]
public DateTime UploadDate;
public DateTime UploadDate { get; set; }
[DisplayName("Uploaded by")]
public string UploadUser;
public string UploadUser { get; set; }
}
}

View File

@@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<Version>3.0.99.583</Version>
<Version>3.0.99.585</Version>
<Company>Canary Islands Computer Museum</Company>
<Copyright>Copyright © 2003-2018 Natalia Portillo</Copyright>
<Product>Canary Islands Computer Museum Website</Product>