public async Task <IActionResult> Create(List <IFormFile> files) { var result = await _hotelService.AddImagesAsync(files); var AddedImages = new List <string>(); foreach (var image in result.AddedImages) { AddedImages.Add(image.Name + " Added Successfully"); } ViewData["AddedImages"] = AddedImages; ViewData["UploadErrors"] = result.UploadErrors; return(View()); }