Ejemplo n.º 1
0
        public IActionResult DownVote(string id)
        {
            if (!ModelState.IsValid)
            {
                throw new Exception("Question is not valid.");
            }

            var question = _service.DownVote(id);

            return(RedirectToAction("Details", id));
        }