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