예제 #1
0
        public bool CreateUser(UserDto userDto)
        {
            userRepository.Create(userDto.ConvertToUser());
            return(userRepository.Context.Commit());

            return(Context.Commit());
        }
예제 #2
0
        public void CreateUser(UserDto UserDto)
        {
            var User = UserDto.ConvertToUser();

            _unitOfWork.Users.Add(User);

            _unitOfWork.Complete();
        }
예제 #3
0
        //dang ky
        public void dangky(CustomerDto customer, UserDto user)
        {
            var customers = customer.ConvertToCustomer();
            var users     = user.ConvertToUser();

            _unitOfWork.Customers.Add(customers);
            _unitOfWork.Complete();

            users.UserCustomerId   = customers.CustomerId;
            users.UserPermissionId = 1;


            _unitOfWork.Users.Add(users);
            _unitOfWork.Complete();
        }
예제 #4
0
 public bool UpdateUser(UserDto userDto)
 {
     userRepository.Update(userDto.ConvertToUser());
     return(base.Context.Commit());
 }