public void ExcluirSistema(int sistema_id)
        {
            RepSistema rep = new RepSistema();

            if (rep.FindById(sistema_id) != null)
            {
                rep.Delete(sistema_id);
            }
        }
        public void AtualizarSistema(Sistema s)
        {
            RepSistema rep = new RepSistema();

            if (rep.FindById(s.IdSistema) != null)
            {
                rep.UpdateAll(s);
            }
        }
        public List <Sistema> BuscarTodosSistema()
        {
            RepSistema rep = new RepSistema();

            return(rep.FindAll());
        }
        //Sistema

        #region Sistema
        public void InserirSistema(Sistema s)
        {
            RepSistema rep = new RepSistema();

            rep.Insert(s);
        }