Beispiel #1
0
        public async Task <int> InsertAsync(Insumo insumo)
        {
            _context.Add(insumo);
            await _context.SaveChangesAsync();

            return(insumo.Id);
        }
Beispiel #2
0
 public async Task InsertAsync(Tipo department)
 {
     _context.Add(department);
     await _context.SaveChangesAsync();
 }