Allow machines photos to be uploaded from the admin page.

This commit is contained in:
2019-05-28 01:09:12 +01:00
parent 017626bdbc
commit ae0ca7f51b
4 changed files with 265 additions and 23 deletions

View File

@@ -18,8 +18,9 @@ namespace cicm_web.Areas.Admin.Models
[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 IFormFile Photo { get; set; }
public int MachineId { get; set; }
public int LicenseId { get; set; }
public string ErrorMessage { get; set; }
}
}