public bool AddUserContact(IAccount account, ContactDTO contact)
        {
            var searchedContact = SearchForContactInDB(contact.Username);

            if (account.Contacts.Exists(o => o.Username.ToLower() == searchedContact.Username.ToLower()) == false)
            {
                account.Contacts.Add(SearchForContactInDB(contact.Username));
                _accountsDB.Update(account);
                return(true);
            }
            else
            {
                return(false);
            }
        }
 public void UpdateCurrentAccount(IAccount user)
 {
     _accountsDB.Update(user);
 }