public bool InsertServicio(Servicio servicioadd) { bool result; try { dbcontext.Servicios.Add(servicioadd); dbcontext.SaveChanges(); result = true; } catch (Exception) { result = false; } return(result); }
public bool InsertTarjeta(Tarjeta tarjetanew) { bool result = false; try { dbcontext.Tarjetas.Add(tarjetanew); dbcontext.SaveChanges(); result = true; } catch (Exception) { result = false; } return(result); }
public bool InsertFactura(Factura facturanew) { bool result = false; try { facturanew.FechaPago = null; dbcontext.Facturas.Add(facturanew); dbcontext.SaveChanges(); result = true; } catch (Exception ex) { result = false; } return(result); }