categorie fix
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
// Auto-generiert von CreateWebshopFiles.ps1
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
@@ -8,12 +10,20 @@ namespace Webshop.Application.DTOs.Categorie
|
||||
{
|
||||
public class CreatecategorieDto
|
||||
{
|
||||
[Required]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Slug { get; set; } = string.Empty;
|
||||
public string Description { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
public string Slug { get; set; }
|
||||
|
||||
public string? Description { get; set; }
|
||||
public Guid? ParentcategorieId { get; set; }
|
||||
public string? ImageUrl { get; set; }
|
||||
|
||||
public IFormFile? ImageFile { get; set; } // << HINZUF<55>GEN >>
|
||||
|
||||
public bool IsActive { get; set; } = true;
|
||||
public int DisplayOrder { get; set; } = 0;
|
||||
|
||||
// public string? ImageUrl { get; set; } // << ENTFERNEN >>
|
||||
}
|
||||
}
|
||||
|
||||
23
Webshop.Application/DTOs/Categories/UpdatecategorieDto.cs
Normal file
23
Webshop.Application/DTOs/Categories/UpdatecategorieDto.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
// src/Webshop.Application/DTOs/Categorie/UpdatecategorieDto.cs
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Webshop.Application.DTOs.Categorie
|
||||
{
|
||||
public class UpdatecategorieDto
|
||||
{
|
||||
[Required]
|
||||
public Guid Id { get; set; }
|
||||
[Required]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
[Required]
|
||||
public string Slug { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public Guid? ParentcategorieId { get; set; }
|
||||
public IFormFile? ImageFile { get; set; }
|
||||
public string? ImageUrl { get; set; } // Zum Beibehalten oder Löschen der alten URL
|
||||
public bool IsActive { get; set; }
|
||||
public int DisplayOrder { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user