public IHttpActionResult GuardarPrestamoLLavesAmbientes(AmbienteDTO oAmbiente) { try { ProgramacionBl oProgramacionBl = new ProgramacionBl(); var datos = oProgramacionBl.GuardarPrestamoLLavesAmbientes(oAmbiente); return(Ok(new { success = true, datos })); } catch (Exception exc) { return(Ok(new { success = false, exc.Message })); } }