aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Services/Mapper/IGenericMapper.cs
blob: 2583f0364c8d493bf6ef5c6131d267d312f4d74f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
using Microsoft.AspNetCore.Mvc;
using System.Security.Claims;
using System.Threading.Tasks;

namespace Timeline.Services.Mapper
{
    public interface IGenericMapper
    {
        TDestination AutoMapperMap<TDestination>(object source);
        Task<TDestination> MapAsync<TSource, TDestination>(TSource source, IUrlHelper urlHelper, ClaimsPrincipal? user);
    }
}