public async Task <IActionResult> Create([FromForm] Story story, IFormFile image) { story.ImagePath = await _imageService.UploadImage(story, image); ModelState.Remove("ID"); if (ModelState.IsValid) { await _repository.CreateStoryAsync(story); return(RedirectToAction(nameof(Index))); } return(View(story)); }