public NewMessageViewModel(IWebCommunicatorAsync <Message> webCommunicator, IMessageDataRepository dataRepository) : base(webCommunicator) { _dataRepository = dataRepository; send = new DelegateCommand(CanSendMessage, SendMessage); clear = new DelegateCommand(CanClearMessage, ClearMessage); _message = new Message(); CountryCodes = new List <CountryCode>(dataRepository.GetCountryDialingCodes()); IsSending = false; }