Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class WalletData
- {
- public string OwnerAlias { get; set; }
- public string OwnerPin { get; set; }
- }
- public WalletData GetWalletData(int nodeId)
- {
- using (DialogKioskEntities context = new DialogKioskEntities())
- {
- var data = context.Nodes
- .Where(n => n.NodeId == nodeId)
- .Select(n => new
- {
- ez = n.EzWallet
- })
- .FirstOrDefault();
- WalletData wd = JsonConvert.DeserializeObject<WalletData>(data.ez.ToString());
- return wd;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement