Пример #1
0
        public async Task <RegistroDtoCreateResult> Post(RegistroDtoCreate registro)
        {
            var model  = _mapper.Map <RegistroModel>(registro);
            var entity = _mapper.Map <RegistroEntity>(model);
            var result = await _repository.InsertAsync(entity);

            return(_mapper.Map <RegistroDtoCreateResult>(result));
        }