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)); }
public TenantExpeditionServiceDto UpdateStatusTenantExpeditionService(UpdateStatusTenantExpeditionServiceInputDto inputDto) { var result = _expeditionService.UpdateStatusTenantExpeditionService(inputDto); return(result); }