示例#1
0
        public async Task <ActionResult> AddBatch(
            [FromBody] AddBatchRequestBody requestBody
            )
        {
            Batch newBatch = await AccessService.AddBatch(
                requestBody.ProductId,
                requestBody.BatchSize,
                requestBody.ExpirationDate
                );

            return(Ok(newBatch));
        }