aboutsummaryrefslogtreecommitdiff
path: root/src/Web/DevHive.Web/Configurations/Mapping/ProfilePictureMappings.cs
blob: 8c12a20a18b1c46fe2c417807092ef0f2542115b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using System;
using AutoMapper;
using DevHive.Web.Models.ProfilePicture;
using DevHive.Services.Models.ProfilePicture;

namespace DevHive.Web.Configurations.Mapping
{
	public class ProfilePictureMappings : Profile
	{
		public ProfilePictureMappings()
		{
			CreateMap<ProfilePictureWebModel, ProfilePictureServiceModel>()
				.ForMember(dest => dest.ProfilePictureFormFile, src => src.MapFrom(p => p.Picture));
		}
	}
}