public ServiceCreationOrUpdateRequest(string serviceId, ServiceInputDto input) : base(ExecutionRequestType.Mutation) { if (string.IsNullOrWhiteSpace(serviceId)) { throw new ArgumentException("Value cannot be null or whitespace.", nameof(serviceId)); } ServiceId = serviceId; Input = input ?? throw new ArgumentNullException(nameof(input)); }
public async Task <IActionResult> Put(string serviceId, [FromBody] ServiceInputDto serviceDescription) { return(await Execute(new ServiceCreationOrUpdateRequest(serviceId, serviceDescription))); }