36 lines
629 B
C#
Raw Normal View History

2024-04-22 17:55:47 -05:00
using DAL.Models;
using System.ComponentModel.DataAnnotations;
namespace API.DTO.Base
{
public class GrantDTO : IAdaptable<Grant>
{
public ulong id { get; set; }
[MaxLength(128)]
public string name { get; set; } = null!;
public ulong permissionId { get; set; }
public DateTime updated { get; set; }
public ulong updater { get; set; }
public Grant adaptToModel()
{
return new Grant
{
id = id,
name = name,
permissionId = permissionId,
updated = updated,
updater = updater
};
}
2024-05-20 10:46:15 -05:00
public void adaptFromModel(in Grant model)
{
throw new NotImplementedException();
}
2024-04-22 17:55:47 -05:00
}
}