Example #1
0
    public Contribuinte CadastrarContribuinte(Contribuinte c)
    {
        using (var db = new IrpfContext())
        {
            db.Contribuintes.Add(c);
            db.SaveChanges();

            return(c);
        }
    }
Example #2
0
    public Deducao LancarDeducao(Deducao d)
    {
        using (var db = new IrpfContext())
        {
            db.Deducoes.Add(d);
            db.SaveChanges();

            return(null);
        }
    }
Example #3
0
    public Declaracao adicionarDec(Declaracao d)
    {
        using (var db = new IrpfContext())
        {
            var dec = d;
            db.Declaracoes.Add(d);
            db.SaveChanges();

            return(d);
        }
    }