Exemplo n.º 1
0
        //
        // GET: /Port/Delete/5

        //public ActionResult Delete(int id = 0)
        //{
        //    Port port = objSourceMastersModel.GetJobPortById(id);
        //    if (port == null)
        //    {
        //        return HttpNotFound();
        //    }
        //    return View(port);
        //}

        //
        // POST: /Port/Delete/5

        //[HttpPost, ActionName("Delete")]
        //[ValidateAntiForgeryToken]
        public ActionResult DeleteConfirmed(int id)
        {
            objSourceMastersModel.DeletePort(id);
            TempData["SuccessMSG"] = "You have successfully deleted Port.";
            return(RedirectToAction("Index"));
        }