Exemplo n.º 1
0
        public MPMerchantLandlordModel RetrieveMerchantLandlordInformation(int merchantId)
        {
            Dictionary<string, string> result = merchantProfileRepository.RetrieveMerchantLandlordInformation(merchantId);
            MPMerchantLandlordModel resultedModel = new MPMerchantLandlordModel();
            if (result.Count > 0)
            {
                resultedModel.MerchantID = Convert.ToInt32(result["MerchantId"]);
                resultedModel.MerchantStatus = result["MerchantStatus"];
                resultedModel.ContractStatus = result["ContractStatus"];
                resultedModel.TypeofPropertyId = result["TypeofPropertyId"];
                resultedModel.LandlordCompanyName = result["LandlordCompanyName"];
                resultedModel.landlordFirstName = result["LandlordFirstName"];
                resultedModel.landlordLastName = result["LandlordLastName"];

                resultedModel.MonthlyRentAmount = result["RentedAmount"];
                resultedModel.LandlordAddress.Address = result["Address"];
                resultedModel.LandlordAddress.City = result["City"];
                resultedModel.LandlordAddress.Phone1 = result["Phone"];
                resultedModel.LandlordAddress.Cell = result["CellPhone"];
                resultedModel.LandlordAddress.Email = result["Email"];

                resultedModel.Questions = RetrieveMerchantLandlordQuestionInformation(merchantId);
            }
            return resultedModel;
        }
Exemplo n.º 2
0
 public bool UpdateMerchantLandlordInformation(MPMerchantLandlordModel entity)
 {
     return merchantProfileRepository.UpdateMerchantLandlordInformation(entity);
 }
Exemplo n.º 3
0
 public bool UpdateMerchantLandlordInformation(MPMerchantLandlordModel entity)
 {
     return new DataAccess.DataAccess().ExecuteNonQuery("avz_MRC_spUpdateMerchantLandlordInformation", new
     {
         merchantId = entity.MerchantID,
         TypeofPropertyId = entity.TypeofPropertyId,
         LandlordCompanyName = entity.LandlordCompanyName,
         LandlordFirstName = entity.landlordFirstName,
         LandlordLastName = entity.landlordLastName,
         RentedAmount = entity.MonthlyRentAmount,
         Address = entity.LandlordAddress.Address,
         City = entity.LandlordAddress.City,
         Phone = entity.LandlordAddress.Phone1,
         CellPhone = entity.LandlordAddress.Cell,
         Email = entity.LandlordAddress.Email,
         UserId=entity.UserId
     });
 }