reactredux/webapi/WeatherForecast/Models/Requests/PutCategoryItemRequestModel.cs

13 lines
405 B
C#

using Core.Abstractions.Models;
using Core.DomainObjects;
using WeatherForecast.Models.L10n;
namespace WeatherForecast.Models.Requests {
public class PutCategoryItemRequestModel : RequestModelBase<Category> {
public List<CategoryL10nModel> L10n { get; set; }
public override Category ToDomainObject() => new Category {
L10n = L10n.Select(x => x.ToDomainObject()).ToList()
};
}
}