示例#1
0
 public async Task <Button> Apply([FromBody] ApplyButtonInput input, [FromServices] IButtonStateRepository buttonStateRepo, [FromServices] ISwitchSubsystemManager <SwitchEntity, SwitchEntity> switchRepo)
 {
     return(await buttonStateRepo.Apply(input.ButtonStateId, switchRepo));
 }
 public async Task <Button> Apply(Guid buttonStateId, [FromServices] ISwitchSubsystemManager <SwitchEntity, SwitchEntity> switchRepo)
 {
     return(await repo.Apply(buttonStateId, switchRepo));
 }