Пример #1
0
 public NewContactPageViewModel(ILocalPhoneDB serviceDB, IPageDialogService dialogService)
 {
     _localDbService = serviceDB;
     _dialogService  = dialogService;
     objContactInfo  = new PhoneDialerModel();
     SaveContactInfo = new DelegateCommand(SaveContactsDetails);
 }
Пример #2
0
        public async Task <int> InsertIntoContactTable(PhoneDialerModel objModel)
        {
            int result = 0;


            if (objModel.DialerId != 0)
            {
                result = await sqlConnectionAsync.UpdateAsync(objModel);
            }
            else
            {
                result = await sqlConnectionAsync.InsertAsync(objModel);
            }


            return(result);
        }
Пример #3
0
 public async Task <int> DeletePhoneNumber(PhoneDialerModel objModel)
 {
     return(await sqlConnectionAsync.DeleteAsync(objModel));
 }