// // GET: /ShippingAgent/Delete/5 //public ActionResult Delete(int id = 0) //{ // ShippingAgent shippingagent = objSourceMastersModel.GetShippingAgentById(id); // if (shippingagent == null) // { // return HttpNotFound(); // } // return View(shippingagent); //} // // POST: /ShippingAgent/Delete/5 //[HttpPost, ActionName("Delete")] //[ValidateAntiForgeryToken] public ActionResult DeleteConfirmed(int id) { objSourceMastersModel.DeleteShippingAgent(id); TempData["SuccessMSG"] = "You have successfully deleted Shipping Agent."; return(RedirectToAction("Index")); }