basic profile info endpoints created

This commit is contained in:
2024-10-26 02:23:33 +02:00
Unverified
parent 521dfaec11
commit ad822c648a
8 changed files with 146 additions and 3 deletions

View File

@@ -0,0 +1,27 @@
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
}