fix
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
namespace MyOffice.Services.Account.Domain;
|
||||
/// <see cref="MyOffice.Data.Models.Items.ItemCategory"/>
|
||||
namespace MyOffice.Services.Account.Domain;
|
||||
|
||||
using AutoMapper;
|
||||
using MyOffice.Data.Models.Items;
|
||||
|
||||
public class ItemCategoryDto
|
||||
@@ -10,4 +12,12 @@ public class ItemCategoryDto
|
||||
public string Name { get; set; } = null!;
|
||||
public List<ItemDto> Items { get; set; } = null!;
|
||||
public bool IsInternal { get; set; }
|
||||
}
|
||||
|
||||
public class ItemCategoryDtoProfile: Profile
|
||||
{
|
||||
public ItemCategoryDtoProfile()
|
||||
{
|
||||
CreateMap<ItemCategory, ItemCategoryDto>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user