Add controllers for suppliers, stock items, jobs, cutting tools, and packing. Refactor MaterialsController to use MaterialService with dimension-aware CRUD, search, and bulk operations. Extract DTOs into dedicated files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
608 B
C#
25 lines
608 B
C#
namespace CutList.Web.DTOs;
|
|
|
|
public class CuttingToolDto
|
|
{
|
|
public int Id { get; set; }
|
|
public string Name { get; set; } = string.Empty;
|
|
public decimal KerfInches { get; set; }
|
|
public bool IsDefault { get; set; }
|
|
public bool IsActive { get; set; }
|
|
}
|
|
|
|
public class CreateCuttingToolDto
|
|
{
|
|
public string Name { get; set; } = string.Empty;
|
|
public decimal KerfInches { get; set; }
|
|
public bool IsDefault { get; set; }
|
|
}
|
|
|
|
public class UpdateCuttingToolDto
|
|
{
|
|
public string? Name { get; set; }
|
|
public decimal? KerfInches { get; set; }
|
|
public bool? IsDefault { get; set; }
|
|
}
|