Пример #1
0
        public IActionResult Create(StudentViewModel model)
        {
            if (model.IsEmpty())
            {
                return(View(model));
            }

            _repository.AddItemAsync(model);
            return(Redirect("GetAll"));
        }