public SeriesModel GetSeriesModel(uint seriesId)
        {
            SeriesModel seriesData    = null;
            DataRow     rawSeriesData = GetRawSeriesData(seriesId);

            if (rawSeriesData != null)
            {
                seriesData = ConvertDataRowToSeriesModel(rawSeriesData);
            }

            return(seriesData);
        }
        private SeriesModel ConvertDataRowToSeriesModel(DataRow rawSeriesData)
        {
            uint authorId;

            uint.TryParse(rawSeriesData[seriesAuthorKeyIndex].ToString(), out authorId);
            string title = rawSeriesData[seriesTitleIndex].ToString();

            AuthorModel author = ((App)Application.Current).Model.AuthorTable.GetAuthorFromId(authorId);

            SeriesModel seriesModel = new SeriesModel(author, title);

            return(seriesModel);
        }
 public bool UpdateSeries(SeriesModel seriesModel) => updateItem(seriesModel);
 public bool AddSeries(SeriesModel seriesModel) => addItem(seriesModel);