public void ChooseHealthPlan(Employee employee, HealthPlan healthPlan) { employee.SetHelthPlan(healthPlan); _employeeRepository.Update(employee); _mediator.Publish(new EmployeeEmailNotification( "*****@*****.**", employee.Email, "Health Plan Approved", $"Congratulations {employee.Name}, your helth plan is aproved!")); }
public void SetHelthPlan(HealthPlan healthPlan) { HealthPlan = healthPlan; }