security: use more antiforgery tokens

This commit is contained in:
Gary Sharp
2025-07-25 12:32:44 +10:00
parent fd43d85778
commit 7deead494b
222 changed files with 12919 additions and 11728 deletions
@@ -2,7 +2,18 @@
{
public class ComponentModel
{
public _ComponentModel Component { get; set; }
public string Result { get; set; }
public int Id { get; set; }
public string Description { get; set; }
public string Cost { get; set; }
public static ComponentModel FromJobComponent(Disco.Models.Repository.JobComponent jc)
{
return new ComponentModel
{
Id = jc.Id,
Description = jc.Description,
Cost = jc.Cost.ToString("C")
};
}
}
}
@@ -1,19 +0,0 @@
namespace Disco.Web.Areas.API.Models.Job
{
public class _ComponentModel
{
public int Id { get; set; }
public string Description { get; set; }
public string Cost { get; set; }
public static _ComponentModel FromJobComponent(Disco.Models.Repository.JobComponent jc)
{
return new _ComponentModel
{
Id = jc.Id,
Description = jc.Description,
Cost = jc.Cost.ToString("C")
};
}
}
}