Esempio n. 1
0
        //
        // GET: /Country/Delete/5

        //public ActionResult Delete(int id = 0)
        //{

        //    CountryMaster country = objSourceMastersModel.GetCountryById(id);
        //    if (country == null)
        //    {
        //        return HttpNotFound();
        //    }
        //    return View(country);
        //}

        //
        // POST: /Country/Delete/5

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