public static int GenerarOrdenViaticos(TBL_CABECERAORDENVIATICO orden, TBL_SOLICITUDVIATICOS solicitud) { try { contexto = new EmpresaPK2Entities(); contexto.SP_GENERAR_ORDEN_VIATICOS(orden.ID_SOLICITUD, solicitud.NOMBREUSUARIO, solicitud.ESTADOSOLICITUD, orden.FECHAORDEN, orden.ESTADOORDEN); } catch (Exception ex) { throw ex; } finally { if (contexto != null) { contexto.Dispose(); } contexto = null; } return(1); }