public void Add(int? parentId, string Text)
        {
            using (db)
            {
                var curId = this.User.Identity.GetUserId();
                var user = db.Users.Find(curId);

                var newRecallMessages = new RecallMessage()
                {
                    ParentId = parentId,
                    Text = Text,
                    Author = user,
                    AuthorId = user.Id,
                    AddDateTime = DateTime.Now,
                    Karma = 0,
                    IsDeleted = false,
                    AboutSite=true
                };
                
                db.RecallMessages.Add(newRecallMessages);
                db.SaveChanges();
            }

            Response.Redirect(Request.UrlReferrer.AbsoluteUri);
        }
        public void Add(string userId, int? parentId, string Text)
        {
                using (var transaction = _db.Database.BeginTransaction())
                {
                    try
                    {
                        var curId = this.HttpContext.User.Identity.GetUserId();
                        var author = _db.Users.Find(curId);
                        var user = _db.Users.Find(userId);

                        var newRecallMessages = new RecallMessage()
                        {
                            ParentId = parentId,
                            Text = Text,
                            Author = author,
                            AuthorId = author.Id,
                            CreateDateTime = DateTime.Now,
                            Karma = 0,
                            IsDeleted = false,
                            AboutSite = false,
                            User = user,
                            UserId = user.Id
                        };

                        _db.RecallMessages.Add(newRecallMessages);
                        _db.SaveChanges();

                        transaction.Commit();
                    }
                    catch (Exception error)
                    {
                        transaction.Rollback();
                        throw new Exception(error.Message);
                    }
                }
                
            Response.Redirect(Request.UrlReferrer.AbsoluteUri);
        }