예제 #1
0
        // GET: OrderController/Delete/5

        /// <summary>
        /// deletion of orders
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult Delete(int id)
        {
            Order p = new Order();

            p = _partsBL.GetOrderById(id);
            _partsBL.DeleteOrder(_partsBL.GetOrderById(id));

            return(RedirectToAction(nameof(Index)));
        }