public ActionResult Edit(int commentId, string content) { if (content != null) { var newComment = new Comment { Content = content, Id = commentId }; cRepo.Edit(newComment); return(new EmptyResult()); } return(new EmptyResult()); }