1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Diagnostics.CodeAnalysis; using Microsoft.AspNetCore.Http; namespace DevHive.Web.Models.Post { public class CreatePostWebModel { [NotNull] [Required] public string Message { get; set; } public List<IFormFile> Files { get; set; } } }