Example #1
0
        public ActionResult Create(OrderDTO model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }

            OrderBL.Create(model, base._DB);

            return(RedirectToAction("Index", "Product"));
        }
Example #2
0
 // POST: api/Order
 public int Post([FromBody] OrderDTO order)
 {
     return(OrderBL.Create(order, base._DB));
 }