34 lines
644 B
C#
34 lines
644 B
C#
|
using DAL.Models;
|
||
|
|
||
|
namespace API.DTO.Base.Update
|
||
|
{
|
||
|
public class SignupDTO : IAdaptable<Signup>
|
||
|
{
|
||
|
public ulong id { get; set; }
|
||
|
public ulong eventId { get; set; }
|
||
|
public ulong userId { get; set; }
|
||
|
|
||
|
public DateTime updated { get; set; }
|
||
|
public ulong updater { get; set; }
|
||
|
public Signup adaptToModel()
|
||
|
{
|
||
|
return new Signup
|
||
|
{
|
||
|
id = id,
|
||
|
eventId = eventId,
|
||
|
userId = userId,
|
||
|
updated = updated,
|
||
|
updater = updater
|
||
|
};
|
||
|
}
|
||
|
public void adaptFromModel(in Signup model)
|
||
|
{
|
||
|
id = model.id;
|
||
|
eventId = model.eventId;
|
||
|
userId = model.userId;
|
||
|
updated = model.updated;
|
||
|
updater = model.updater;
|
||
|
}
|
||
|
}
|
||
|
}
|