Beispiel #1
0
        public TenantExpeditionServiceDto UpdateStatusTenantExpeditionService(UpdateStatusTenantExpeditionServiceInputDto inputDto)
        {
            var tenantExpeditionService = _tenantExpeditionRepository.Get(inputDto.Id);

            Validate.Found(tenantExpeditionService, "Jasa Pengiriman");

            if (inputDto.IsActive)
            {
                tenantExpeditionService.Activate();
            }
            else
            {
                tenantExpeditionService.Deactivate();
            }
            _tenantExpeditionRepository.Update(tenantExpeditionService);
            return(Mapper.Map <TenantExpeditionServiceDto>(tenantExpeditionService));
        }
Beispiel #2
0
        public TenantExpeditionServiceDto UpdateStatusTenantExpeditionService(UpdateStatusTenantExpeditionServiceInputDto inputDto)
        {
            var result = _expeditionService.UpdateStatusTenantExpeditionService(inputDto);

            return(result);
        }