I'm designing a REST API controller with .NET CORE so I can upload a file, should I use IFormFile or byte[] in my model's request ?
It's better to do this ?
public class AttachmentModel
    {
        public string FileName { get; set; }
        public byte[] FileContent { get; set; }
   }
or this ?
public class AttachmentModel
    {
        public string FileName { get; set; }
        public IFormFile  FileContent { get; set; }
   }