Esempio n. 1
0
        public HttpResponse Create(ProblemCreateInputModel model)
        {
            if (!IsUserSignedIn())
            {
                return(Redirect("/Users/Login"));
            }

            var validation = ValidationHelper.IsValid(model);

            if (!validation.result)
            {
                return(Error(validation.errorMessage));
            }

            _problemService.CreateProblem(model);

            return(Redirect("/"));
        }