public string Export(IList <CategoryArea> categoryAreas) { return(_recordExtractor.GetRecordsContent <CategoryAreaRecord, CategoryAreaRecordMap>( categoryAreas.Select(a => new CategoryAreaRecord { Name = a.Name, Description = a.Description }))); }
public string Export(IList <Category> categories) { return(_recordExtractor.GetRecordsContent <CategoryRecord, CategoryRecordMap>( categories.Select(c => new CategoryRecord { Name = c.Name, Description = c.Description, AreaName = c.CategoryArea?.Name }))); }
public string Export(IList <Book> books) { return(_recordExtractor.GetRecordsContent <BookRecord, BookRecordMap>( books.Select(b => new BookRecord { Title = b.Name, PublishYear = b.PublishYear, Authors = b.Authors, Rating = b.Rating, ImageUri = b.ImageUri, AmazonUri = b.AmazonUri, ContentUri = b.ContentUri, ContentType = b.ContentType, Reflection = b.Reflection, AreaName = b.Category?.CategoryArea?.Name, CategoryName = b.Category?.Name }))); }