Пример #1
0
        public void Register(StudentViewModel studentViewModel)
        {
            //_studentRepository.Add(_mapper.Map<Student>(studentViewModel));
            //_studentRepository.SaveChanges();
            var registerCommand = _mapper.Map <RegisterStudentCommand>(studentViewModel);

            _bus.SendCmmand(registerCommand);
        }