public void AddCorporationVM(Corporation corporation) { CorporationList.Add(new CorporationViewModel() { Data = corporation }); }
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()); } }