security: use more antiforgery tokens
This commit is contained in:
@@ -1,20 +1,21 @@
|
||||
using Disco.Models.Services.Documents;
|
||||
using Disco.Models.Repository;
|
||||
using Disco.Models.UI.Config.DocumentTemplate;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Disco.Web.Areas.Config.Models.DocumentTemplate
|
||||
{
|
||||
public class CreatePackageModel : ConfigDocumentTemplateCreatePackageModel
|
||||
{
|
||||
public DocumentTemplatePackage Package { get; set; }
|
||||
[StringLength(30), Required]
|
||||
public string Id { get; set; }
|
||||
[StringLength(250), Required]
|
||||
public string Description { get; set; }
|
||||
[Required]
|
||||
public AttachmentTypes Scope { get; set; }
|
||||
|
||||
public List<string> Scopes
|
||||
{
|
||||
get
|
||||
{
|
||||
return Disco.Models.Repository.DocumentTemplate.DocumentTemplateScopes.ToList();
|
||||
}
|
||||
}
|
||||
=> Disco.Models.Repository.DocumentTemplate.DocumentTemplateScopes.ToList();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user