Пример #1
0
 public IHttpActionResult GuardarPrograma(Programa_Tecnica ObjProg)
 {
     try
     {
         TecnicaBl obj   = new TecnicaBl();
         var       Datos = obj.GuardarPrograma(ObjProg);
         if (Datos)
         {
             return(Ok(new { success = true }));
         }
         else
         {
             return(Ok(new { success = false }));
         }
     }
     catch (Exception exc)
     {
         return(Ok(new { success = false, exc = exc.Message }));
     }
 }