public bool Create(Entidades.Prestamos prestamo) { prestamo.FechaRegistro = DateTime.Today; prestamo.Saldo = prestamo.MontoConInteres; prestamo.Status = true; ctx.Prestamos.Add(prestamo); var status = ctx.SaveChanges(); return(status > 0 ? true : false); }
public System.Threading.Tasks.Task ActualizarPrestamoAsync(Entidades.Prestamos P_Prestamo) { return(base.Channel.ActualizarPrestamoAsync(P_Prestamo)); }
public void ActualizarPrestamo(Entidades.Prestamos P_Prestamo) { base.Channel.ActualizarPrestamo(P_Prestamo); }
public System.Threading.Tasks.Task <System.Collections.Generic.List <Entidades.Prestamos> > ConsultarPrestamosPorEstadoAsync(Entidades.Prestamos P_Prestamo) { return(base.Channel.ConsultarPrestamosPorEstadoAsync(P_Prestamo)); }
public System.Collections.Generic.List <Entidades.Prestamos> ConsultarPrestamosPorEstado(Entidades.Prestamos P_Prestamo) { return(base.Channel.ConsultarPrestamosPorEstado(P_Prestamo)); }
public void AgregarPrestamo(Entidades.Prestamos P_Prestamo) { base.Channel.AgregarPrestamo(P_Prestamo); }
public ActionResult Create(Entidades.Prestamos prestamo) { ctx.Create(prestamo); return(RedirectToAction("Index", "Prestamos")); }