internal static int CerrarManifiesto(long idmanifiesto) { CerrarOperacionCommand command = new CerrarOperacionCommand(); command.idmanifiesto = idmanifiesto; command.Execute(); return(1); }
internal static bool CerrarOperaciones(IEnumerable <OrdenTrabajoModel> ordenes) { try { foreach (var orden in ordenes) { var command = new CerrarOperacionCommand { cierreoperativo = true, idorden = orden.idordentrabajo }; command.Execute(); } return(true); } catch (Exception) { return(false); } }