18 lines
439 B
C#
18 lines
439 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Galaeth.ApiServer.Models.Common;
|
|
|
|
/// <summary>
|
|
/// Result with data model.
|
|
/// </summary>
|
|
/// <typeparam name="TDataType">The data type being returned.</typeparam>
|
|
public class DataResultModel<TDataType> : ResultModel
|
|
where TDataType : class
|
|
{
|
|
/// <summary>
|
|
/// Included data payload.
|
|
/// </summary>
|
|
[JsonPropertyName("data")]
|
|
public TDataType Data { get; set; }
|
|
}
|