Exemple #1
0
 public IHttpActionResult validarAlternativa(ParametrosDTO objP)
 {
     try
     {
         VirtualidadBl obj   = new VirtualidadBl();
         var           Datos = obj.validarAlternativa(int.Parse(objP.Parametro1));
         if (Datos)
         {
             return(Ok(new { success = true }));
         }
         else
         {
             return(Ok(new { success = false }));
         }
     }
     catch (Exception exc)
     {
         return(Ok(new { success = false, exc = exc.Message }));
     }
 }