예제 #1
0
        public void AddComposition(NewCompositionModel work)
        {
            var entity = MapperService.Instance.Map <NewCompositionModel, Composition>(work);

            uow.CompositionRepository.Create(entity);

            uow.Commit();
        }
예제 #2
0
        public void AddMark(NewMarkModel work)
        {
            var entity = MapperService.Instance.Map <NewMarkModel, Mark>(work);

            uow.MarkRepository.Create(entity);

            uow.Commit();
        }
예제 #3
0
        public void AddUser(NewUserModel user)
        {
            user.Password = CriptingService.HashPassword(user.Password);
            var entity = MapperService.Instance.Map <NewUserModel, User>(user);

            uow.UserRepository.Create(entity);

            uow.Commit();
        }