public bool EditMessageType(MessageType messageType)
 {
     try
     {
         _messageTypeRepository.EditMessageType(messageType);
         return true;
     }
     catch (Exception ex)
     {
         _validationDictionary.AddError("_FORM", "Message Type not edited. " + ex.Message);
         return false;
     }
 }
 public ActionResult Edit(MessageType messageType)
 {
     if(_messageTypeService.EditMessageType(messageType))
         return RedirectToAction("Index");
     return View(messageType);
 }
 public ActionResult Create(MessageType messageType)
 {
     if (_messageTypeService.CreateMessageType(messageType))
         return RedirectToAction("Index");
     return View(messageType);
 }