public void SendTo(IConnectedViewModel vm, IViewElement exp)
 {
     if (vm != null)
     {
         vm.NotifyAbout(exp);
     }
 }
        public void Send(IConnectedViewModel to, IViewElement message)
        {
            if (message != null)
            {
                _jsonWorker.AddElement((ExpensesInfo)message.ConvertToBO());
            }

            VVM.SendTo(to, message);

            Reset();
        }
Beispiel #3
0
        public Account GetAccount(IConnectedViewModel model)
        {
            Console.WriteLine($"AccountService(GetAccount): Getting account for token({model.Token})");
            Account current = _context.Accounts
                              .Where(account => account.Token.Equals(model.Token))
                              .Include(account => account.Tokens)
                              .Include(account => account.Triggers)
                              .FirstOrDefault();

            return(current);
        }
Beispiel #4
0
 public void Send(IConnectedViewModel to, IViewElement message)
 {
     throw new NotImplementedException();
 }
 public void Send(IConnectedViewModel to, IViewElement message)
 {
     VVM.SendTo(to, message);
 }