コード例 #1
0
        public async Task <IActionResult> Create(AmigoEntity amigoEntity, IFormFile ImageFile)
        {
            if (ModelState.IsValid)
            {
                await _domainService.InsertAsync(amigoEntity, ImageFile.OpenReadStream());

                return(RedirectToAction(nameof(Index)));
            }
            return(View(amigoEntity));
        }