public ActionResult Create(Comment c)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    this._commentsService.Add(c);
                    return RedirectToRoute("Default", new { controller = "Movies", action = "Details", id = c.MovieID });
                }
            }
            catch (Exception e)
            {
                ModelState.AddModelError("", String.Format("Edit Failure, inner exception: {0}", e));
            }

            return View(c);
        }
 public void Update(Comment comment)
 {
     
 }
 public void Add(Comment newComment)
 {
     newComment.ID = Interlocked.Increment(ref _newId);
     _comments.Add(newComment);
 }
 // GET: /Comments/Create
 public ActionResult Create(int movieId)
 {
     Comment c = new Comment { MovieID = movieId };
     return View(c);
 }
 public ActionResult Delete(Comment c)
 {
     var movieId = c.MovieID;
     this._commentsService.Delete(c.ID);
     return RedirectToRoute("Default", new { controller = "Movies", action = "Details", id = movieId });
 }
 public void Update(Comment comment)
 {
     this._commentsRepository.Save();
 }
 public void Add(Comment newComment)
 {
     this._commentsRepository.Add(newComment);
     this._commentsRepository.Save();
 }