예제 #1
0
        public HttpResponse Create(string id)
        {
            if (!this.IsUserSignedIn())
            {
                return(this.Redirect("/Users/Login"));
            }

            var problemName = submissionsService.GetNameById(id);
            var viewModel   = new CreateSubmissionInputModel()
            {
                Name      = problemName,
                ProblemId = id,
            };

            return(this.View(viewModel));
        }