コード例 #1
0
        public async Task <IActionResult> CheckStock([FromBody] CheckoutModel[] chekoutModel)//check stock availablility registration function
        {
            string status = await serviceC.stockAvalibility(chekoutModel);

            if (status != null)
            {
                return(BadRequest(new { message = status }));
            }
            return(Ok(status));
        }