Ejemplo n.º 1
0
 public void RemoveContact(int id, bool isPlatform)
 {
     if (_contactsRepo.RemoveContact(id))
     {
         //if(isPlatform)
         _mainView.ReloadTableView();
     }
 }
Ejemplo n.º 2
0
        public void AddContact(string name, string phone)
        {
            int index = _random.Next(minValue: 0, maxValue: 4);
            var user  = new Contact
            {
                Name        = name,
                Phone       = phone,
                ProfileIcon = _resourceIcon[index]
            };

            if (_contactsRepo.AddContact(user))
            {
                _mainView.ReloadTableView();
            }
        }