コード例 #1
0
        public bool DeleteEmployee(int EmployeeId)
        {
            var employee = _PayRollManagmentContext.Employees.Where(a => a.EmployeeId == EmployeeId).FirstOrDefault();

            _PayRollManagmentContext.Remove(employee);
            //_PayRollManagmentContext.Remove(employee);
            return(Save());
        }