sharp-wawi/Parts.cs

32 lines
615 B
C#

using System;
using appsrv.attributes;
using sharpwawi.models;
using System.Collections.Generic;
namespace sharpwawi
{
public class Parts
{
public WaWi WaWi { get; }
public Parts(WaWi waWi)
{
WaWi = waWi;
}
public Part this[string key]
{
get => throw new KeyNotFoundException();
}
[PublishedMember]
public Part Create()
{
return new Part();
}
[PublishedMember]
public Part TestPart { get; } = new Part("P001-456-8765", "Der universelle Testartikel");
}
}