Пример #1
0
 public async Task <ActionResult <TokenResponse> > GetTokenAsync(LoginRequest body)
 {
     return(Ok((new TokenResponse()).ToJson()));
     //return BadRequest("WTF");
     //throw new NotImplementedException();
 }
Пример #2
0
 public System.Threading.Tasks.Task <Microsoft.AspNetCore.Mvc.ActionResult <TokenResponse> > GetToken([Microsoft.AspNetCore.Mvc.FromBody] LoginRequest body)
 {
     return(_implementation.GetTokenAsync(body));
 }