public ActionResult DeleteComment(long commentId) { var classRepository = new ClassRepository(_context); classRepository.DeleteComment(commentId); _context.Save(_loggedUser); return(new HttpStatusCodeResult(HttpStatusCode.OK)); }