public bool DeleteHubOwner(HubOwner hubOwner) { if (hubOwner == null) return false; _unitOfWork.HubOwnerRepository.Delete(hubOwner); _unitOfWork.Save(); return true; }
public bool EditHubOwner(HubOwner hubOwner) { _unitOfWork.HubOwnerRepository.Edit(hubOwner); _unitOfWork.Save(); return true; }
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; }