예제 #1
0
        public async Task CriarAsync(Anuncio obj)
        {
            var modelo = await _context.Modelo.FindAsync(obj.ModeloId);

            obj.Modelo = modelo;
            _context.Add(obj);
            await _context.SaveChangesAsync();
        }
예제 #2
0
 public async Task CriarAsync(Marca obj)
 {
     _context.Add(obj);
     await _context.SaveChangesAsync();
 }