using FrontendWebApi.Jwt; using FrontendWebApi.Models; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Repository.BackendRepository.Interface; using Repository.BaseRepository.Interface; using Repository.FrontendRepository.Interface; using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading.Tasks; namespace FrontendWebApi.ApiControllers { //[ApiController] public class UserController : MyBaseApiController { private readonly IBackendRepository backendRepository; private readonly IFrontendRepository frontendRepository; public UserController ( IBackendRepository backendRepository, IFrontendRepository frontendRepository ) { this.backendRepository = backendRepository; this.frontendRepository = frontendRepository; } [HttpPost] [Route("api/AddUser")] public async Task> AddUser([FromBody]bool str) { var a = User.Claims.Select(p => new { p.Type, p.Value }); ApiResult apiResult = new ApiResult(jwt_str); apiResult.Data = myUser; return apiResult; } } }