Beispiel #1
0
 public IHttpActionResult ModificarPrograma(Programa_Tecnica ObjProg)
 {
     try {
         TecnicaBl obj   = new TecnicaBl();
         var       Datos = obj.ModificarPrograma(ObjProg.Id);
         if (Datos != null)
         {
             return(Ok(new { success = true, datos = Datos }));
         }
         else
         {
             return(Ok(new { success = false }));
         }
     }
     catch (Exception exc)
     {
         return(Ok(new { success = false, exc = exc.Message }));
     }
 }