private bool ValidateHeaders(IFormFile file) { using (var stream = new StreamReader(file.OpenReadStream())) { var list = stream.ReadLine()?.Split(','); return(HeadersList.SequenceEqual(list)); } }