Example #1
0
        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);
        }
Example #2
0
 public System.Threading.Tasks.Task ActualizarPrestamoAsync(Entidades.Prestamos P_Prestamo)
 {
     return(base.Channel.ActualizarPrestamoAsync(P_Prestamo));
 }
Example #3
0
 public void ActualizarPrestamo(Entidades.Prestamos P_Prestamo)
 {
     base.Channel.ActualizarPrestamo(P_Prestamo);
 }
Example #4
0
 public System.Threading.Tasks.Task <System.Collections.Generic.List <Entidades.Prestamos> > ConsultarPrestamosPorEstadoAsync(Entidades.Prestamos P_Prestamo)
 {
     return(base.Channel.ConsultarPrestamosPorEstadoAsync(P_Prestamo));
 }
Example #5
0
 public System.Collections.Generic.List <Entidades.Prestamos> ConsultarPrestamosPorEstado(Entidades.Prestamos P_Prestamo)
 {
     return(base.Channel.ConsultarPrestamosPorEstado(P_Prestamo));
 }
Example #6
0
 public void AgregarPrestamo(Entidades.Prestamos P_Prestamo)
 {
     base.Channel.AgregarPrestamo(P_Prestamo);
 }
Example #7
0
 public ActionResult Create(Entidades.Prestamos prestamo)
 {
     ctx.Create(prestamo);
     return(RedirectToAction("Index", "Prestamos"));
 }