2020-04-17 15:51:11 +02:00
|
|
|
namespace zero.Web.Models
|
2020-04-17 15:32:33 +02:00
|
|
|
{
|
|
|
|
|
public abstract class EditModel
|
|
|
|
|
{
|
2020-04-17 15:51:11 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// Meta data for the entity
|
|
|
|
|
/// </summary>
|
|
|
|
|
public EditModelMeta Meta { get; set; } = new EditModelMeta();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class EditModelMeta
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The change token maps to a database entity which holds ID and collection of the model to edit
|
|
|
|
|
/// If these values do not match the entity on save it is rejected
|
|
|
|
|
/// // TODO expiration expiry session.Advanced.GetMetadataFor(user)[Raven.Client.Constants.Documents.Metadata.Expires] = DateTime.UtcNow.AddMinutes(60);
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Token { get; set; }
|
2020-04-17 15:32:33 +02:00
|
|
|
}
|
|
|
|
|
}
|