Ejemplo n.º 1
0
        public async Task <IActionResult> Create(Section section)
        {
            if (ModelState.IsValid &&
                await SectionService.CreateSectionAsync(ClassroomName, section, ModelErrors))
            {
                return(RedirectToAction("Index"));
            }
            else
            {
                await PopulateDropDownsAsync();

                return(View("CreateEdit", section));
            }
        }