コード例 #1
0
        public async Task <ActionResult> Upload(FormCollection formCollection)
        {
            var model = new UploadedImage();

            if (Request != null)
            {
                HttpPostedFileBase file = Request.Files["uploadedFile"];
                model = await _imageService.CreateUploadedImage(file);

                await _imageService.AddImageToBlobStorageAsync(model);
            }

            return(View("UploadImage", model));
        }