private Create ( |
||
comment | ||
id | long | |
return | System.Web.Mvc.ActionResult |
public ActionResult Create(Comment comment, long id)
{
var username = User.Identity.Name;
var createdComment = playlistManager.CreateComment(id, comment.Text, User.Identity.Name);
if(createdComment != null)
return Json(createdComment);
else
return new HttpStatusCodeResult(HttpStatusCode.Forbidden);
}