mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Fix create page for machine photo.
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
|
||||
namespace cicm_web.Areas.Admin.Models
|
||||
{
|
||||
@@ -12,5 +15,11 @@ namespace cicm_web.Areas.Admin.Models
|
||||
public DateTime UploadDate { get; set; }
|
||||
[DisplayName("Uploaded by")]
|
||||
public string UploadUser { get; set; }
|
||||
[NotMapped]
|
||||
[Required(ErrorMessage = "Image file required")]
|
||||
[DisplayName("Upload photo:")]
|
||||
public IFormFile Photo { get; set; }
|
||||
public int MachineId { get; set; }
|
||||
public int LicenseId { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user