Example #1
0
        public ActionResult DeleteConfirmed(long id)
        {
            var employee = service.GetEmployee(id);

            service.DeleteEmployee(employee);
            return(RedirectToAction("Index"));
        }
Example #2
0
        public string Delete(long id)
        {
            var employee = service.GetEmployee(id);

            service.DeleteEmployee(employee);

            return("Deleted successfully");
        }