Exemplo n.º 1
0
        public IHttpActionResult Post(CustomerRp Model)
        {
            var customers = this.CustomerFactory.BuildCustomers();

            var value = this.CustomerAppService.Convert(Model);

            var id =  customers.Create(value);

            return this.Ok();
        }
Exemplo n.º 2
0
 public CustomerValue Convert(CustomerRp Model)
 {
     return this.MappingEngine.Map<CustomerValue>(Model);
 }