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