24 lines
No EOL
734 B
C#
24 lines
No EOL
734 B
C#
using System.Security.Claims;
|
|
using DrinkRateAPI.ApiModels.UserProfile;
|
|
using DrinkRateAPI.Contexts;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
namespace DrinkRateAPI.Services;
|
|
|
|
public class UserProfileService(ApplicationDbContext context,
|
|
ApplicationUserService applicationUserService)
|
|
{
|
|
private ApplicationDbContext _context = context;
|
|
private ApplicationUserService _applicationUserService = applicationUserService;
|
|
|
|
public async Task<UserProfileGet> PutUserProfileAsync(UserProfilePut userProfile, ClaimsPrincipal identity)
|
|
{
|
|
var profile = _applicationUserService.UserProfileByApplicationUserAsync(identity);
|
|
|
|
|
|
|
|
return new();
|
|
}
|
|
} |