コード例 #1
0
        public ActionResult AddProblem(SudokuModel model)
        {
            int result = _problemService.AddProblemStatement(model);

            if (result > 0)
            {
                TempData[Constants.SUCCESS_MESSAGE] = "Problem statement creatred successfully";
            }
            else
            {
                TempData[Constants.ERROR_MESSAGE] = "Error while adding problem statement";
            }
            return(RedirectToAction("Index"));
        }