public static tpagtransaccion buscar(long ctransaccion) { coreContext contexto = Session.GetContexto(); tpagtransaccion lst = contexto.tpagtransaccion.Where(x => x.ctransaccion == ctransaccion).FirstOrDefault(); return(lst); }
public static tpagmovimiento crear(long ctransaccion, long cuentaorg, long cuentades, decimal monto) { coreContext contexto = Session.GetContexto(); tpagmovimiento mov = new tpagmovimiento(); mov.cmovimiento = id(); mov.cuentaorg = cuentaorg; mov.cuentades = cuentades; mov.ctransaccion = ctransaccion; tpagtransaccion tran = TpagTransacccionDal.buscar(ctransaccion); mov.debito = tran.debito.Value; mov.monto = monto; mov.terminal = "MÓVIL"; mov.descripcion = tran.nombre + ". CTA. ORG : " + cuentaorg.ToString() + " A LA CUENTA: " + cuentades.ToString(); mov.fproceso = DateTime.Now; return(mov); }