Files
WatchIt/WatchIt.Common/WatchIt.Common.Model/Accounts/AccountRequest.cs

27 lines
535 B
C#
Raw Normal View History

2024-10-26 02:23:33 +02:00
using System.Text.Json.Serialization;
namespace WatchIt.Common.Model.Accounts;
public class AccountRequest : Account
{
#region PROPERTIES
[JsonPropertyName("gender_id")]
public short GenderId { get; set; }
#endregion
#region PUBLIC METHODS
public void UpdateAccount(Database.Model.Account.Account account)
{
account.Username = Username;
account.Email = Email;
account.Description = Description;
account.GenderId = GenderId;
}
#endregion
}