public Response Execute(Request request) { try { _logger.Info("Init distribution use case"); var response = new Response(); _logger.Info("Finish distribution use case"); return(response); } catch (System.Exception exception) { _logger.Error("Error to execute distribution use case"); throw exception; } }
public Response Execute(Request request) { try { _logger.Info("Init distribution use case"); var distribution = (new Ruleset( new FindEmployeesRule(_employeeGateway), new CalculationInfluenceRule(_calculationInfluenceGateway), new CalculateParticipationRule() )).Execute(request); var response = new Response(distribution); _logger.Info("Finish distribution use case. {response}", response); return(response); } catch (System.Exception exception) { _logger.Error("Error to execute distribution use case", exception); throw exception; } }