Skip to content

Commit ed7dfc7

Browse files
committed
Modify PictureUri name
1 parent 08a45f2 commit ed7dfc7

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/Services/Marketing/Marketing.API/Controllers/CampaignsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ private Campaign MapCampaignDtoToModel(CampaignDTO campaignDto)
184184
Description = campaignDto.Description,
185185
From = campaignDto.From,
186186
To = campaignDto.To,
187-
PictureUri = campaignDto.PictureUri
187+
PictureUri = $"http://externalcatalogbaseurltobereplaced/api/v1/campaigns/{campaignDto.Id}/pic"
188188
};
189189
}
190190
}

src/Services/Marketing/Marketing.API/Dto/CampaignDTO.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ public class CampaignDTO
66
{
77
public int Id { get; set; }
88

9+
public string Name { get; set; }
10+
911
public string Description { get; set; }
1012

1113
public DateTime From { get; set; }
1214

1315
public DateTime To { get; set; }
1416

15-
public string Url { get; set; }
17+
public string PictureUri { get; set; }
1618
}
1719
}

0 commit comments

Comments
 (0)