Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions EstateManagementUI.BlazorServer/Factories/ModelFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ public static List<ContractProductModel> ConvertFrom(List<BusinessLogic.Models.C
public static ContractProductModel ConvertFrom(BusinessLogic.Models.ContractModels.ContractProductModel model) {
var result = new ContractProductModel() {
ContractProductId = model.ContractProductId,
ContractProductReportingId = model.ContractProductReportingId,
ProductName = model.ProductName,
DisplayText = model.DisplayText,
Value = model.Value,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public ContractUIService(IMediator mediator) {

public async Task<Result<List<ContractModels.ContractModel>>> GetContracts(CorrelationId correlationId,
Guid estateId) {
var result = await this.Mediator.Send(new ContractQueries.GetContractsQuery(correlationId, estateId));
Result<List<BusinessLogic.Models.ContractModels.ContractModel>> result = await this.Mediator.Send(new ContractQueries.GetContractsQuery(correlationId, estateId));
if (result.IsFailed)
return ResultHelpers.CreateFailure(result);
var contracts = ModelFactory.ConvertFrom(result.Data);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ public class ContractProduct
public Guid ContractId { get; set; }
[JsonProperty("product_id")]
public Guid ProductId { get; set; }
[JsonProperty("product_reporting_id")]
public Int32 ProductReportingId { get; set; }
[JsonProperty("contract_product_reporting_id")]
public Int32 ContractProductReportingId { get; set; }
[JsonProperty("product_name")]
public String ProductName { get; set; }
[JsonProperty("display_text")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ public class ContractProductTransactionFee
public Int32 FeeType { get; set; }
[JsonProperty("value")]
public Decimal Value { get; set; }
[JsonProperty("contract_product_transaction_fee_reporting_id")]
public Int32 ContractProductTransactionFeeReportingId { get; set; }
}
2 changes: 1 addition & 1 deletion EstateManagmentUI.BusinessLogic/Client/APIModelFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ public static ContractModels.ContractModel ToContract(this Contract apiResultDat
DisplayText = contractProduct.DisplayText,
ProductName = contractProduct.ProductName,
ContractProductId = contractProduct.ProductId,
ContractProductReportingId = contractProduct.ProductReportingId,
ContractProductReportingId = contractProduct.ContractProductReportingId,
NumberOfFees = contractProduct.TransactionFees.Count,
TransactionFees = new List<ContractModels.ContractProductTransactionFeeModel>()
};
Expand Down
Loading