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