summaryrefslogtreecommitdiff
path: root/slips/src/app/Marina/Presentation/Mappers/NewBoatRegistrationMapper.cs
blob: d815e6df55b6aba118e49bf29554278c14089c60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using Marina.Presentation.DTO;
using Marina.Web;

namespace Marina.Presentation.Mappers {
	public class NewBoatRegistrationMapper : INewBoatRegistrationMapper {
		public BoatRegistrationDTO MapFrom( IHttpRequest input ) {
			return new BoatRegistrationDTO(
				input.ParsePayloadFor( PayloadKeys.For( "uxRegistrationNumberTextBox" ) ),
				input.ParsePayloadFor( PayloadKeys.For( "uxManufacturerTextBox" ) ),
				input.ParsePayloadFor( PayloadKeys.For( "uxModelYearTextBox" ) ),
				input.ParsePayloadFor( PayloadKeys.For( "uxLengthTextBox" ) ),
				input.ParsePayloadFor( PayloadKeys.CustomerId )
				);
		}
	}
}