コード例 #1
0
        //Den verkar hitta routern Create trots att den nu heter CreateAsync
        public async Task <IActionResult> CreateAsync(MemoryCreateVM memoryVM)
        {
            if (!ModelState.IsValid)
            {
                return(View());
            }

            await service.AddMemoryAsync(memoryVM);

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