Пример #1
0
        public ActionResult Delete(Course course)
        {
            try
            {
                APIConsumer <Models.Webshop.Course> .DeleteObject("course", (course.Id).ToString(), course);

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }
Пример #2
0
        public ActionResult Delete(Product product)
        {
            try
            {
                // TODO: Add delete logic here
                APIConsumer <Models.Webshop.Product> .DeleteObject(PATH, (product.Id).ToString(), product);

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }
Пример #3
0
        public ActionResult Delete(InvoiceDetail invoiceDetail)
        {
            try
            {
                // TODO: Add delete logic here
                APIConsumer <Models.Webshop.InvoiceDetail> .DeleteObject(PATH, (invoiceDetail.Id).ToString(), invoiceDetail);

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }