예제 #1
0
        public override DashboardComponentResponse HandleCore(int request)
        {
            var mapping      = new Mapping();
            var component    = _repository.Get(request);
            var componentDto = mapping.DashboardComponentToDto(component);

            return(new DashboardComponentResponse(componentDto));
        }
예제 #2
0
        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));
        }