public static bool Remover(Servico s) { if (AtendimentoDAO.BuscarPorServicoId(s.Id).Count > 0) { return(false); } _context.Servicos.Remove(s); _context.SaveChanges(); return(true); }
public static bool Remover(Funcionario f) { if (AtendimentoDAO.BuscarPorFuncionarioId(f.Id).Count > 0) { return(false); } _context.Funcionarios.Remove(f); _context.SaveChanges(); return(true); }
public static bool Remover(Animal a) { if (AtendimentoDAO.BuscarPorAnimalId(a.Id).Count > 0) { return(false); } _context.Animais.Remove(a); _context.SaveChanges(); return(true); }