public bool AddComment(string id, string comment) { var user = new UserViewModel(Authentication.User); CommentServiceFactory.Create().Insert( new Comment { DateTime = DateTime.Now, Email = user.UserEmail, Id = Guid.NewGuid(), IdPost = Guid.Parse(id), Text = comment, User = null, VideoPost = null }); return true; }
public ActionResult PersonalPage() { var userViewModel = new UserViewModel(Authentication.User); return View(userViewModel); }