public void RemoveContact(int id, bool isPlatform) { if (_contactsRepo.RemoveContact(id)) { //if(isPlatform) _mainView.ReloadTableView(); } }
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(); } }