// // GET: /Vayage/Delete/5 //public ActionResult Delete(int id = 0) //{ // Voyage voyage = objSourceMastersModel.GetVoyageById(id); // if (voyage == null) // { // return HttpNotFound(); // } // return View(voyage); //} // // POST: /Vayage/Delete/5 //[HttpPost, ActionName("Delete")] //[ValidateAntiForgeryToken] public ActionResult DeleteConfirmed(int id) { objSourceMastersModel.DeleteVoyage(id); ViewBag.SuccessMsg = "You have successfully deleted Voyage."; return(View("Index", objSourceMastersModel.GetVoyage())); }