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 }); }
public bool UpdateMerchantOwnerInformation(MPMerchantOwnerDetailModel entity) { return merchantProfileRepository.UpdateMerchantOwnerInformation(entity); }
public MPMerchantOwnerDetailModel RetrieveMerchantOwnersInformation(int OwnerId) { MPMerchantOwnerDetailModel details = new MPMerchantOwnerDetailModel(); details.Owner = RetrieveMerchantOwner(OwnerId)[0]; details.Address = RetrieveMerchantOwnerAddress(OwnerId)[0]; return details; }