Camelcase on answer from restservice
This commit is contained in:
19
Vidly/App_Start/MappingProfile.cs
Normal file
19
Vidly/App_Start/MappingProfile.cs
Normal file
@ -0,0 +1,19 @@
|
||||
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>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user