private Virusbacteria ModelToEntity(VirusBacteriaModel virusModel)
 {
     return(new Virusbacteria
     {
         IdVirusBacteria = virusModel.IdVirusBacteria,
         Nome = virusModel.Nome,
         DiasRecuperacao = virusModel.DiasRecuperacao
     });
 }
 public bool Update(VirusBacteriaModel virusBacteriaModel)
 {
     _context.Update(ModelToEntity(virusBacteriaModel));
     return(_context.SaveChanges() == 1 ? true : false);
 }
 public bool Insert(VirusBacteriaModel virusBacteriaModel)
 {
     _context.Add(ModelToEntity(virusBacteriaModel));
     return(_context.SaveChanges() == 1 ? true : false);
 }