public async Task <int> Criar(TbFaixa faixa)
 {
     faixa.DataRegistro = DateTime.Now;
     _contexto.Add(faixa);
     return(await _contexto.SaveChangesAsync());
 }
 public Task <int> Excluir(TbFaixa faixa)
 {
     faixa.ExclusaoLogica = true;
     _contexto.Faixa.Update(faixa);
     return(_contexto.SaveChangesAsync());
 }
 public async Task <int> Alterar(Guid?id, TbFaixa faixa)
 {
     _contexto.Faixa.Update(faixa);
     return(await _contexto.SaveChangesAsync());
 }