Beispiel #1
0
 public static Order FromCreate(OrderCreate create, string groupId)
 {
     return(new Order(
                null,
                groupId,
                create.Description,
                DateTime.Now,
                null,
                null,
                create.PartNumber,
                create.SupplierId,
                create.Url,
                create.Quantity,
                create.UnitCost,
                "Submitted"
                ));
 }
Beispiel #2
0
 public static Order FromCreateStockroom(OrderCreate create)
 {
     return(new Order(
                null,
                null,
                create.Description,
                DateTime.Now,
                null,
                null,
                create.PartNumber,
                create.SupplierId,
                create.Url,
                create.Quantity,
                create.UnitCost,
                "Stockroom"
                ));
 }