public async Task <IHttpActionResult> Post() { var files = HttpContext.Current.Request.Files; var filesList = new List <EronFile>(); foreach (string fileName in files) { if (HttpContext.Current.Request.Files[fileName] != null) { HttpPostedFileBase file = new HttpPostedFileWrapper(HttpContext.Current.Request.Files[fileName]); var result = await FileHelper.SaveFileAsync(file.MapTo <HttpPostedFileBase>(), ApplicationFolder.ApplicationFolderName.ImageUploadFolder); filesList.Add(result); } } return(Ok(filesList)); }