public void DeleteFuncionario(Employee depto)
        {
            FPFContext contexto = new FPFContext();

            contexto.Entry(depto).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
            contexto.Employees.Remove(depto);
            contexto.SaveChanges();
        }
        public void DeleteDepartamento(Rule depto)
        {
            FPFContext contexto = new FPFContext();

            contexto.Entry(depto).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
            contexto.Rules.Remove(depto);
            contexto.SaveChanges();
        }
        public void EditFuncionario(Employee depto)
        {
            FPFContext contexto = new FPFContext();

            depto.ModifiedAt            = DateTime.Now;
            depto.CreatedAt             = depto.CreatedAt;
            contexto.Entry(depto).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
            contexto.SaveChanges();
        }
        public void EditDepartamento(Rule depto)
        {
            FPFContext contexto = new FPFContext();

            depto.ModifiedAt            = DateTime.Now;
            depto.CreatedAt             = depto.CreatedAt;
            contexto.Entry(depto).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
            contexto.SaveChanges();
        }