reactredux/webapi/WeatherForecast/Models/Responses/GetShopCartResponseModel.cs

15 lines
373 B
C#

using Core.Abstractions.Models;
using Core.DomainObjects.Documents;
namespace WeatherForecast.Models.Responses {
public class GetShopCartResponseModel : ResponseModelBase {
public List<ShopCartModel> Items { get; set; }
public GetShopCartResponseModel(List<ShopCart> items) {
Items = items.Select(x => new ShopCartModel(x)).ToList();
}
}
}