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

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