/// <summary> /// Gets all editable datasets for the user /// </summary> /// <param name="userId">userid</param> /// <returns>list of datasets</returns> public List <DatasetDto> GetAllEditable(int userId) { List <DatasetDto> dtoList = new List <DatasetDto>(); foreach (Dataset ds in _datasetRepository.GetAllEditable(userId)) { try { dtoList.Add(DatasetMapper.ToDto(ds)); } catch { }// ignore error so other datasets can be loaded correctly } return(dtoList); }