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

            uow.CompositionRepository.Create(entity);

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

            uow.MarkRepository.Create(entity);

            uow.Commit();
        }
        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();
        }