Пример #1
0
        public int DeleteFromChatList(ClientUser forUser, string contactUserName)
        {
            ClientUser contactToDelete = _storageHandler.GetUserByUserName(contactUserName);

            try
            {
                _storageHandler.DeleteChatContact(forUser, contactToDelete);
            }
            catch (Exception)
            {
                return(0); // Error
            }

            return(1); // OK
        }