Exemple #1
0
 public bool DeleteHubOwner(HubOwner hubOwner)
 {
     if (hubOwner == null) return false;
     _unitOfWork.HubOwnerRepository.Delete(hubOwner);
     _unitOfWork.Save();
     return true;
 }
Exemple #2
0
 public bool EditHubOwner(HubOwner hubOwner)
 {
     _unitOfWork.HubOwnerRepository.Edit(hubOwner);
     _unitOfWork.Save();
     return true;
 }
Exemple #3
0
 public bool AddHubOwner(HubOwner hubOwner)
 {
     _unitOfWork.HubOwnerRepository.Add(hubOwner);
     _unitOfWork.Save();
     return true;
 }
        private HubOwner BindHubOwner(HubOwnerViewModel hubOwnerViewModel)
        {
            if (hubOwnerViewModel == null) return null;
            var hubOwner = new HubOwner()
                               {
                                   Name = hubOwnerViewModel.Name,
                                   LongName = hubOwnerViewModel.LongName,
                                   HubOwnerID = hubOwnerViewModel.HubOwnerID,

                               };
            return hubOwner;
        }