gender controller finished
This commit is contained in:
@@ -1,12 +1,20 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Text.Json.Serialization;
|
||||
using WatchIt.Common.Query;
|
||||
|
||||
namespace WatchIt.Common.Model.Genders;
|
||||
|
||||
public class GenderResponse : Gender
|
||||
public class GenderResponse : Gender, IQueryOrderable<GenderResponse>
|
||||
{
|
||||
#region PROPERTIES
|
||||
|
||||
[JsonIgnore]
|
||||
public static IDictionary<string, Func<GenderResponse, IComparable>> OrderableProperties { get; } = new Dictionary<string, Func<GenderResponse, IComparable>>
|
||||
{
|
||||
{ "name", item => item.Name }
|
||||
};
|
||||
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public required short? Id { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user