Пример #1
0
        public async Task <EmployeeBOL> DeleteEmployeeByIdAsync(string employeeId)
        {
            try
            {
                var employee = await _employeeRepo.DeleteAsync(employeeId);

                if (employee == null)
                {
                    return(null);
                }
                return(_employeeModel.GetMapEmployee(employee));
            }

            catch (Exception ex)
            {
                throw ex;
            }
        }