private void AssignValueAddress(INavigationParameters parameters) { var value = parameters.GetValue <PartnerInfoResponseModel>("PartnerInfoModel"); ShipAddress = value.ShipAddress; BillAddress = value.BillAddress; PartnerName = value.FullName; SelectedPartnerType = PartnerTypeCollectioin.Where(x => x.Code == value.PartnerTypeCode).FirstOrDefault(); IsInternalOn = value.IsInternal; IsSharedOn = value.IsShared; ContactName = value.ContactName; Phone = value.Phone; ContactEmail = value.ContactEmail; AccountNumber = value.AccountNumber; ReferenceKey = value.ReferenceKey; Notes = value.Notes; }
private void AssingValueAddPartner(PartnerInfoResponseModel partnerInfoModel) { try { PartnerInfoModel = partnerInfoModel; PartnerName = PartnerInfoModel.FullName; ShipAddress = PartnerInfoModel.ShipAddress; BillAddress = PartnerInfoModel.BillAddress; ContactName = PartnerInfoModel.ContactName; Phone = PartnerInfoModel.Phone; ContactEmail = PartnerInfoModel.ContactEmail; AccountNumber = PartnerInfoModel.AccountNumber; ReferenceKey = PartnerInfoModel.ReferenceKey; Notes = PartnerInfoModel.Notes; SelectedPartnerType = PartnerTypeCollectioin.Where(x => x.Name == PartnerInfoModel.PartnerTypeName).FirstOrDefault(); } catch (Exception ex) { Crashes.TrackError(ex); } }