public ActionResult PostComment(Guid photoId, Comment comment) { if (ModelState.IsValid) { comment.CommentId = Guid.NewGuid(); comment.Date = DateTime.Now; _dal.AddNewComment(photoId, comment.Transform()); return(PartialView()); } else { return(View(comment)); } }