public List <DAL.Entity.Message> GetAllByMessageTypeId(int id)
 {
     try
     {
         return(_IMessageRepository.AllByMessageTypeId(id).ToList());
     }
     catch (Exception exception)
     {
         exception.Log();
         return(null);
     }
 }