Пример #1
0
        public IActionResult Create(CreateInputModel model)
        {
            if (!this.ModelState.IsValid)
            {
                return(Redirect("/Problems/Create"));
            }

            problemsService.CreateProblem(model.Name, model.Points);

            return(this.Redirect("/"));
        }