MonthlyInventory report
This commit is contained in:
@@ -9,6 +9,8 @@ namespace InventoryTraker.Web.Models
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public int InventoryTypeId { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public int UnitsPerCase { get; set; }
|
||||
@@ -32,6 +34,7 @@ namespace InventoryTraker.Web.Models
|
||||
public void CreateMappings(IMapperConfiguration configuration)
|
||||
{
|
||||
configuration.CreateMap<Inventory, InventoryViewModel>()
|
||||
.ForMember(d => d.InventoryTypeId, opt => opt.MapFrom(s => s.InventoryType.Id))
|
||||
.ForMember(d => d.Name, opt => opt.MapFrom(s => s.InventoryType.Name))
|
||||
.ForMember(d => d.UnitsPerCase, opt => opt.MapFrom(s => s.InventoryType.UnitsPerCase))
|
||||
.ForMember(d => d.ContainerType, opt => opt.MapFrom(s => s.InventoryType.ContainerType))
|
||||
|
||||
Reference in New Issue
Block a user