Example #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();
            }
        }
Example #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);
            }
        }