Exemplo n.º 1
0
 public IntvBaseVm(AdminLevel a, IntvDetails d, ICalcIndicators c)
 {
     r = new IntvRepository();
     this.model = r.GetById(d.Id);
     adminLevel = a;
     calc = c;
 }
Exemplo n.º 2
0
 public IntvBaseVm(AdminLevel a, int typeId, ICalcIndicators c)
 {
     adminLevel = a;
     r = new IntvRepository();
     model = r.CreateIntv(typeId);
     model.AdminLevelId = adminLevel.Id;
     calc = c;
 }