public async Task <IActionResult> SetAliasForAppliance(SetAliasForApplianceDto dto, CancellationToken token) { return(new Presenter <CommandResponse>(await _mediator.Send(new SetAliasForApplianceRequest(User.ToClaimsIdentity(), dto), token)) .ToIActionResult()); }
public SetAliasForApplianceRequest(ClaimsIdentity identity, SetAliasForApplianceDto dto) : base(identity) { ApplianceId = dto.ApplianceId; Alias = dto.Alias; }