public ExpertsViewModel(IAskAnExpertService expertService, ILocalDbService localDbService, IDialogService dialogService) { _expertService = expertService; _localDbService = localDbService; _dialogService = dialogService; ExpertsList = new ObservableCollection <InstructingExpertItemModel>(); }
public ExpertDetailViewModel(IAskAnExpertService expertService, ILocalDbService localDbService, IDialogService dialogService, msg_ExpertDetail msg_Detail) { _expertService = expertService; _localDbService = localDbService; _dialogService = dialogService; _msg_Detail = msg_Detail; InstructorSubjectsList = new ObservableCollection <InstructorSubjectItemModel>(); InstructorSubjectReviewsList = new ObservableCollection <InstructorSubjectReviewItemModel>(); if (msg_Detail.expert_dto != null) { Id = msg_Detail.expert_dto.Id; RaisePropertyChanged(() => Id); ImagePath = msg_Detail.expert_dto.ImagePath; RaisePropertyChanged(() => ImagePath); Name = msg_Detail.expert_dto.Name; RaisePropertyChanged(() => Name); Email = msg_Detail.expert_dto.Email; RaisePropertyChanged(() => Email); Phone = msg_Detail.expert_dto.Phone; RaisePropertyChanged(() => Phone); About = msg_Detail.expert_dto.About; RaisePropertyChanged(() => About); Portfolio = msg_Detail.expert_dto.Portfolio; RaisePropertyChanged(() => Portfolio); University = msg_Detail.expert_dto.University; RaisePropertyChanged(() => University); Degree = msg_Detail.expert_dto.Degree; RaisePropertyChanged(() => Degree); //IsCounsellor = msg_Detail.expert_dto.IsCounsellor; RaisePropertyChanged(() => IsCounsellor); IsExpert = msg_Detail.expert_dto.IsExpert; RaisePropertyChanged(() => IsExpert); IsTutor = msg_Detail.expert_dto.IsTutor; RaisePropertyChanged(() => IsTutor); } }