示例#1
0
 public bool DeleteUserHub(UserHub entity)
 {
     if (entity == null) return false;
     _unitOfWork.UserHubRepository.Delete(entity);
     _unitOfWork.Save();
     return true;
 }
示例#2
0
 public bool EditUserHub(UserHub entity)
 {
     _unitOfWork.UserHubRepository.Edit(entity);
     _unitOfWork.Save();
     return true;
 }
示例#3
0
 public bool AddUserHub(UserHub entity)
 {
     _unitOfWork.UserHubRepository.Add(entity);
     _unitOfWork.Save();
     return true;
 }
示例#4
0
        private UserHub BindUserOwner(HubUserViewModel hubOwnerViewModel)
        {
            if (hubOwnerViewModel == null) return null;
            var hubOwner = new UserHub()
            {
               HubID = hubOwnerViewModel.HubID,
               UserProfileID = hubOwnerViewModel.UserProfileID,

            };
            return hubOwner;
        }