public IActionResult DeleteUser(int UserID) { User userDeleted = _context.GetUser(UserID); User userWhoDeleted = _context.GetUser(Convert.ToInt32(HttpContext.Session.GetString("LoginID"))); _context.LogAction("User Deleted", "User " + userDeleted.FirstName + " " + userDeleted.LastName + " (User ID: " + userDeleted.UserID + ") has been deleted by User " + userWhoDeleted.FirstName + " " + userWhoDeleted.LastName + ".", userWhoDeleted); _context.DeleteUser(UserID); return(RedirectToAction("ViewUsers")); }