Example #1
0
 public bool DeleteHubOwner(HubOwner hubOwner)
 {
     if (hubOwner == null) return false;
     _unitOfWork.HubOwnerRepository.Delete(hubOwner);
     _unitOfWork.Save();
     return true;
 }
Example #2
0
 public bool EditHubOwner(HubOwner hubOwner)
 {
     _unitOfWork.HubOwnerRepository.Edit(hubOwner);
     _unitOfWork.Save();
     return true;
 }
Example #3
0
 public bool AddHubOwner(HubOwner hubOwner)
 {
     _unitOfWork.HubOwnerRepository.Add(hubOwner);
     _unitOfWork.Save();
     return true;
 }
Example #4
0
        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;
        }