예제 #1
0
        public ActionResult Delete(int id)
        {
            try
            {
                employeeProvider.DeleteEmployee(id);
                TempData["alert"] = GetAlert("Employee removed successfully", "success");
            }
            catch (Exception ex)
            {
                TempData["alert"] = GetAlert("Error", ex.Message);
            }

            return(RedirectToAction("GetEmployees"));
        }