19 lines
388 B
C#
19 lines
388 B
C#
using AutoMapper;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using Vidly.Dtos;
|
|
using Vidly.Models;
|
|
|
|
namespace Vidly.App_Start
|
|
{
|
|
public class MappingProfile:Profile
|
|
{
|
|
public MappingProfile()
|
|
{
|
|
Mapper.CreateMap<Customer, CustomerDto>();
|
|
Mapper.CreateMap<CustomerDto, Customer>();
|
|
}
|
|
}
|
|
} |