private void LoadDataToCombobox() { Faculty faculty = new Faculty() { }; IFaculty facultyObj = new FacultyService(new Data.WpfDbContext()); FacultyDropdown = new ObservableCollection <Faculty>(facultyObj.GetDetails()); }
private void LoadDataToCombobox(int argInt) { IBatch facultyObj = new BatchService(new Data.WpfDbContext()); Batch populate = facultyObj.GetBatchDetails(argInt); IFaculty entity = new FacultyService(new Data.WpfDbContext()); var facultyList = entity.GetDetails(); //select from observe collections //CmbSelectedValue = populate.FacultyId; if (facultyList.Any(p => p.Id == populate.FacultyId)) { BatchInstance = populate; } }