using Microsoft.AspNetCore.Http; namespace AdminService.ImageUpload { public interface IImageUploadService { bool ValidateImage(IFormFile file, out string errorMessage); Task<(bool isOk, string path, string fileName, string errorMessage)> UploadImageAsync(IFormFile file, string? customName = null); Task> UploadBatchImagesAsync(IFormFile[] files); } public class BatchUploadResult { public string OriginalFileName { get; set; } = string.Empty; public bool Success { get; set; } public string? Path { get; set; } public string? FileName { get; set; } public string? Message { get; set; } } }