public NewContactPageViewModel(ILocalPhoneDB serviceDB, IPageDialogService dialogService) { _localDbService = serviceDB; _dialogService = dialogService; objContactInfo = new PhoneDialerModel(); SaveContactInfo = new DelegateCommand(SaveContactsDetails); }
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); }
public async Task <int> DeletePhoneNumber(PhoneDialerModel objModel) { return(await sqlConnectionAsync.DeleteAsync(objModel)); }