Esempio n. 1
0
        public async Task <IActionResult> Create(int sectionId)
        {
            ViewData["Title"] = "Create";
            var section = await sectionRepo.GetSectionAsync(sectionId) ?? throw new ArgumentNullException("section");

            var slide = await repo.CreateSlideAsync(section);

            var model = CreateSlideViewModel(slide);

            return(Negotiate("Edit", model));
        }