Exemplo n.º 1
0
 /// <summary>
 ///  Construye Json con el tipo de notificación y mensaje como parámetro
 /// </summary>
 /// <param name="tipoNotificacion"></param>
 /// <param name="mensaje"></param>
 /// <returns></returns>
 internal static object BuildJson(KindOfNotify tipoNotificacion, string mensaje)
 {
     return(new
     {
         tipoNotificacion = tipoNotificacion.ToString(),
         mensaje
     });
 }
Exemplo n.º 2
0
 /// <summary>
 /// Construye Json con el tipo de notificación y mensaje vacio
 /// </summary>
 /// <param name="tipoNotificacion"></param>
 /// <returns></returns>
 internal static object BuildJson(KindOfNotify tipoNotificacion)
 {
     return(new
     {
         tipoNotificacion = tipoNotificacion.ToString(),
         string.Empty
     });
 }