public List <ContainerPackingResult> Post([FromBody] ContainerPackingRequest request) { return(PackingService.Pack(request.Containers, request.ItemsToPack, new List <int>() { 1 })); //request.AlgorithmTypeIDs }
public ActionResult <List <ContainerPackingResult> > Post([FromBody] ContainerPackingRequest request) { return(PackingService.Pack(request.Containers, request.ItemsToPack, request.AlgorithmTypeIDs)); }
public List <ContainerPackingResult> Post([FromBody] ContainerPackingRequest request) { return(PackingService.Pack(request.Containers, request.ItemsToPack.OrderByDescending(i => i.Volume).ToList(), request.AlgorithmTypeIDs)); }