Ejemplo n.º 1
0
        //
        // 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()));
        }