Files
marechai/Marechai/Areas/Admin/Models/MachinePhotoViewModel.cs

26 lines
938 B
C#
Raw Normal View History

using System;
using System.ComponentModel;
2019-05-27 19:38:17 +01:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.AspNetCore.Http;
2020-02-10 02:20:48 +00:00
namespace Marechai.Areas.Admin.Models
{
public class MachinePhotoViewModel : BaseViewModel<Guid>
{
public string Author { get; set; }
public string License { get; set; }
public string Machine { get; set; }
[DisplayName("Uploaded")]
public DateTime UploadDate { get; set; }
[DisplayName("Uploaded by")]
public string UploadUser { get; set; }
2020-02-10 22:44:18 +00:00
[NotMapped, Required(ErrorMessage = "Image file required"), DisplayName("Upload photo:")]
public IFormFile Photo { get; set; }
public int MachineId { get; set; }
public int LicenseId { get; set; }
public string ErrorMessage { get; set; }
2019-05-29 01:00:27 +01:00
[Url]
public string Source { get; set; }
}
}