public IActionResult Post(OrderDetailRegisterModel model)
 {
     if (ModelState.IsValid)
     {
         _orderDetailOperations.Add(model);
     }
     else
     {
         return(BadRequest("Not all parameters have filled"));
     }
     return(Created("", model));
 }
Beispiel #2
0
        public IActionResult Add([FromBody] OrderDetailViewModel model)
        {
            var result = _orderDetail.Add(model);

            return(Ok(result));
        }