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

27 lines
593 B
C#

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