public ActionResult Details(UIMessage message) { message.Id = 0; message.MessageSendingTime = DateTime.Now; messageService.SendMessage(Mapper.Map<UIMessage, BLLMessage>(message)); return RedirectToAction("Index"); }
public ActionResult CorrectMessage(UIMessage message) { messageService.CorrectMessage(Mapper.Map<UIMessage, BLLMessage>(message)); return RedirectToAction("Index"); }