Exemplo n.º 1
0
        public static Message GetMessage(string strCode)
        {
            XElement root = XElement.Load(HttpContext.Current.Server.MapPath("~/Config/MessageConfig.xml"));
               var message = (from el in root.Elements("Message")
                          where el.Attribute("Code").Value == strCode
                              select el ).Single();

               Message objMessage = new Message(message.Elements("General").Single().Value, message.Elements("Specific").Single().Value);
               return objMessage;
        }
Exemplo n.º 2
0
 public BaseException(Message objExceptionMessage)
 {
     ExceptionMessage = objExceptionMessage;
 }