public async Task <IActionResult> Get(string token) { using (var service = new FaceBookService(this.configuration)){ var result = await service.GetMeAsync(token); return(Json(result)); } }
public async Task <IActionResult> Post([FromForm] string token) { using (var fbservice = new FaceBookService(this.configuration)){ Models.User me = await fbservice.GetMeAsync(token); var userservice = new UserService(this.configuration); string tokenapp = userservice.GenerateToken(me); return(Json(tokenapp)); } }