コード例 #1
0
 public bool AddMerchantOwnerInformation(MPMerchantOwnerDetailModel entity)
 {
     return new DataAccess.DataAccess().ExecuteNonQuery("avz_MRC_spAddMerchantOwnerInformation", new
     {
         merchantId = entity.MerchantID,
         Address = entity.Address.Address,
         City = entity.Address.City,
         Phone = entity.Address.Phone1,
         CellPhone = entity.Address.Cell,
         Email = entity.Address.Email,
         ProvinceID = entity.Address.ProvinceID,
         FirstName = entity.Owner.FirstName,
         LastName = entity.Owner.LastName,
         OwnerIdentification = entity.Owner.OwnerIdentification,
         DateofBirth = entity.Owner.DateofBirth,
         DateBecameOwner = entity.Owner.DateBecameOwner,
         IsAuthorized = entity.Owner.IsAuthorized,
         UserId = entity.UserId
     });
 }
コード例 #2
0
 public bool UpdateMerchantOwnerInformation(MPMerchantOwnerDetailModel entity)
 {
     return merchantProfileRepository.UpdateMerchantOwnerInformation(entity);
 }
コード例 #3
0
 public MPMerchantOwnerDetailModel RetrieveMerchantOwnersInformation(int OwnerId)
 {
     MPMerchantOwnerDetailModel details = new MPMerchantOwnerDetailModel();
     details.Owner = RetrieveMerchantOwner(OwnerId)[0];
     details.Address = RetrieveMerchantOwnerAddress(OwnerId)[0];
     return details;
 }