Beispiel #1
0
        public async Task <bool> AltaCuenta(Cuentas cuentaNueva)
        {
            try
            {
                wEservicesContext context = new wEservicesContext();
                context.Cuentas.Add(cuentaNueva);
                await context.SaveChangesAsync();

                //_context.Customers.Add(Customer);
                //await _context.SaveChangesAsync();
                return(true);
            }
            catch
            {
                return(false);
            }
        }
Beispiel #2
0
        public async Task <bool> AltaAnuncio(AltaAnuncios anuncioNunevo)
        {
            try
            {
                wEservicesContext context = new wEservicesContext();
                context.AltaAnuncios.Add(anuncioNunevo);
                await context.SaveChangesAsync();

                //_context.Customers.Add(Customer);
                //await _context.SaveChangesAsync();
                return(true);
            }
            catch
            {
                return(false);
            }
        }