Example #1
0
	    public async Task<IActionResult> DownVote(int id)
	    {
		    var c = _dataContext.Responses.Find(id);
		    _responseService.DownVote(c);
		    _dataContext.Update(c);
		    await _dataContext.SaveChangesAsync();
            return RedirectToAction("Details", new { id = c.QuestionId });

        }