public override DashboardComponentResponse HandleCore(int request) { var mapping = new Mapping(); var component = _repository.Get(request); var componentDto = mapping.DashboardComponentToDto(component); return(new DashboardComponentResponse(componentDto)); }
public override DashboardComponentResponse HandleCore(int request) { var mapping = new Mapping(); var dashboardComponent = _repository.Get(request); var dashboardComponentDto = mapping.DashboardComponentToDto(dashboardComponent); _repository.Remove(request); _dashboardComponentRepository.UpdateDashboardAfterRemoval(dashboardComponent); return(new DashboardComponentResponse(dashboardComponentDto)); }