public ActionResult DeleteConfirmed(int id)
        {
            UserPost.DeletePostByPostId(User.Identity.GetUserId(), id, out var errors);

            if (errors.Length > 0)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest, errors.ToString()));
            }

            return(RedirectToAction("Index"));
        }