Пример #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));
 }
Пример #2
0
 public ButtonStatesController(IButtonStateRepository repo)
 {
     this.repo = repo;
 }