using System.Security.Claims; using DrinkRateAPI.ApiModels.UserProfile; using Microsoft.AspNetCore.Mvc; namespace DrinkRateAPI.Controllers; [ApiController] [Route("user_profile")] public class UserProfileController : ControllerBase { [HttpPut(Name = "user_profile")] public UserProfileGet PutUserProfile(UserProfilePut userProfile) { throw new ApplicationException(); var x = User.FindFirst(ClaimTypes.NameIdentifier)?.Value; //HttpContext.User.Identities.First(); return new(); } }