public List <string> getUserIDListBasedOnType(int typeQues) { List <string> result = new List <string>(); var listTemp = _detailUserTypeService.GetAll().Where(x => x.Type == typeQues); foreach (var userTemp in listTemp) { result.Add(userTemp.UserID); } return(result); }
protected List <ApplicationUser> getNormalUserBasedOnType(Post post) { List <ApplicationUser> ListAppUser = new List <ApplicationUser>(); //Khong gui lai 2 lan cho 1 expert //Check expert info //First condition : List <DetailUserType> detailUser = _detailUserType.GetAll().Where(x => x.Type == post.Id_Type).ToList(); if (detailUser == null) { return(null); } // foreach (var item in detailUser) { ListAppUser.Add(_service.GetUserById(item.UserID)); } // return(ListAppUser); }