Exemple #1
0
        public void Update(AspNetUsersDTO item)
        {
            ApplicationUser ApplicationUser = AspNetUsersMapper.CreateAspNetUsers().Map(item);

            using (var uow = _uowfactory.CreateUnitOfWork())
            {
                var repo = uow.GetRepo <ApplicationUser>();
                repo.Update(ApplicationUser);
                uow.BeginTransaction();
                uow.Commit();
            }
        }
Exemple #2
0
        public void Create(AspNetUsersDTO item)
        {
            ApplicationUser ApplicationUser;

            using (var uow = _uowfactory.CreateUnitOfWork())
            {
                var repo = uow.GetRepo <ApplicationUser>();

                ApplicationUser = AspNetUsersMapper.CreateAspNetUsers().Map(item);

                repo.Create(ApplicationUser);
            }
        }