public async Task <int> InsertAsync(Insumo insumo) { _context.Add(insumo); await _context.SaveChangesAsync(); return(insumo.Id); }
public async Task InsertAsync(Tipo department) { _context.Add(department); await _context.SaveChangesAsync(); }