Exemplo n.º 1
0
 public void AddCorporationVM(Corporation corporation)
 {
     CorporationList.Add(new CorporationViewModel()
     {
         Data = corporation
     });
 }
Exemplo n.º 2
0
 public void setView()
 {
     try
     {
         var corporationList = Db.SQL <Corporation>("SELECT c from Corporation c");
         foreach (var corp in corporationList)
         {
             CorporationList.Add(new CorporationViewModel()
             {
                 Data = corp
             });
         }
     }
     catch (Exception e)
     {
         Console.WriteLine(e.ToString());
     }
 }