public async Task <ActionResult <WebApiResponse> > GetOne(long id)
 {
     return(await _rouletteStateCrud.FirstByIdAndMakeResponseAsync(id));
 }
예제 #2
0
 public async Task <ActionResult <WebApiResponse> > GetUser(long userId)
 {
     // TODO: pending validate policies, if rol is player,
     // can only see its own user, other roles can see all users
     return(await _crudComponent.FirstByIdAndMakeResponseAsync(userId));
 }
예제 #3
0
 public async Task <ActionResult <WebApiResponse> > GetOneOpenedRound(long roundId)
 {
     return(await _roundContextCrud.FirstByIdAndMakeResponseAsync(roundId));
 }