Beispiel #1
0
        //
        // GET: /Transporter/Delete/5

        //public ActionResult Delete(int id = 0)
        //{
        //    Transporter transporter = objSourceMastersModel.GetTransporterById(id);
        //    if (transporter == null)
        //    {
        //        return HttpNotFound();
        //    }
        //    return View(transporter);
        //}

        //
        // POST: /Transporter/Delete/5

        //[HttpPost, ActionName("Delete")]
        //[ValidateAntiForgeryToken]
        public ActionResult DeleteConfirmed(int id)
        {
            objSourceMastersModel.DeleteTransportert(id);
            ViewBag.SuccessMsg = "You have successfully deleted Transporter.";
            return(View("Index", objSourceMastersModel.GetTransporter()));
        }