private void GetSurveyDetail(long id) { TResponse objTResponse = new SurveyDetailBusiness().GetByID(id); if (objTResponse.ResponsePacket != null) { SurveyModel objSurveyModel = objTResponse.ResponsePacket as SurveyModel; FillSurveyDetail(objSurveyModel); } }
private void GetSurveyList(long id) { dgSurvey.ItemsSource = null; TResponse objTResponse = new SurveyDetailBusiness().GetAll(); if (objTResponse.ResponsePacket != null) { cmstripRow.Visibility = Visibility.Visible; List <SurveyModel> lstSurvey = objTResponse.ResponsePacket as List <SurveyModel>; dgSurvey.ItemsSource = lstSurvey.ToList(); } else { // cmstripRow.Visibility = Visibility.Collapsed; // MessageBox.Show("Sorry! You Have no more projects."); } }