コード例 #1
0
        public void Add(TipoViewModel tipoViewModel)
        {
            var AddCommand = _mapper.Map <EntityTipo>(tipoViewModel);

            // Bus.SendCommand(AddCommand);
            //if (ModelState.IsValid)
            //{
            _tipoRepository.Add(AddCommand);
            _tipoRepository.SaveChanges();

            // }
        }