public ActionResult DeleteConfirmed(int id) { UserMessage userMessage = userMessageRepository.GetUserMessageById(id); userMessageRepository.DeleteUserMessage(userMessage); userMessageRepository.Save(); return(RedirectToAction("Index")); }