Exemplo n.º 1
0
 // POST: api/Insurance
 public void Post([FromBody] InsuranceDto model)
 {
     _insuranceService.Create(model);
 }
Exemplo n.º 2
0
        public InsuranceViewModel Create(InsuranceViewModel viewModel)
        {
            Insurance insurance = ViewModelToDomain(viewModel);

            return(DomainToViewModel(insuranceService.Create(insurance)));
        }