예제 #1
0
        public HttpResponse Create(string id)
        {
            var viewModel = new CreateViewModel
            {
                ProblemId = id,
                Name      = problemsService.GetNameById(id),
            };

            return(View(viewModel));
        }
        public HttpResponse Create(string id)
        {
            if (!IsUserSignIn())
            {
                return(Redirect("/Users/Login"));
            }

            var viewModel = new SubmissionInputModel
            {
                ProblemId = id,
                Name      = problemsService.GetNameById(id),
            };

            return(View(viewModel));
        }