public IActionResult Add(Note _note, string View = "")
        {
            var _user = HttpContext.Session.GetSession <User>("User");

            _noteManager.Add(_note);
            _userNoteManager.Add(new UserNote {
                Note = _note, User = _user, CreateDate = DateTime.Now, Status = Status.Owner
            });

            _eventManager.Add(new Event
            {
                User        = _user,
                View        = View == "on" ? true : false,
                Url         = $"{_note.ID}/note-detail",
                ProductID   = _note.ID,
                ProductName = _note.Title,
                Type        = Product.Note,
                Explation   = "New note added"
            });

            TempData["message"] = HelperMethods.ObjectConvertJson(new TempDataModel {
                type = "success", message = "Transaction successful"
            });

            return(Redirect(TempData["BeforeUrl"].ToString()));
        }