Пример #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            UserMessage userMessage = userMessageRepository.GetUserMessageById(id);

            userMessageRepository.DeleteUserMessage(userMessage);
            userMessageRepository.Save();
            return(RedirectToAction("Index"));
        }