Exemplo n.º 1
0
        public IActionResult DeleteEmployee(EmployeeView employee)
        {
            if (!_EmployeeData.Remove(employee.Id))
            {
                return(View(employee));
            }

            return(RedirectToAction("GetEmployees"));
        }