public async Task <Button> Apply([FromBody] ApplyButtonInput input, [FromServices] IButtonStateRepository buttonStateRepo, [FromServices] ISwitchSubsystemManager <SwitchEntity, SwitchEntity> switchRepo) { return(await buttonStateRepo.Apply(input.ButtonStateId, switchRepo)); }
public ButtonStatesController(IButtonStateRepository repo) { this.repo = repo; }