Skip to content

Commit 8842dea

Browse files
committed
Simple search and start with author's profile
1 parent 9edda1b commit 8842dea

File tree

163 files changed

+1696
-28033
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+1696
-28033
lines changed

BookStore.BLL.RepositoryService/AuthorService.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,14 @@ public void AddBook(Book book, Author toAuthor)
2929
_repository.AddBook(book, toAuthor);
3030
}
3131

32-
3332
public ICollection<Book> GetBooks(string author)
3433
{
3534
return _repository.GetBooks(author);
3635
}
36+
37+
public override Author GetById(int id)
38+
{
39+
return _repository.GetById(id);
40+
}
3741
}
3842
}

BookStore.DAL.EntityFramework/EfAuthorRepository.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@ public void AddBook(Book book, Author toAuthor)
2323
Context.SaveChanges();
2424
}
2525

26-
2726
public ICollection<Book> GetBooks(string author)
2827
{
2928
return Context.Authors.FirstOrDefault(x => x.Last_Name == author).Books;
3029
}
30+
31+
public override Author GetById(int id)
32+
{
33+
return Context.Authors.Include(x=>x.Books).FirstOrDefault(x => x.Author_ID == id);
34+
}
3135
}
3236
}

BookStore/BookStore.csproj

+12-54
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@
197197
<Compile Include="Controllers\AdminController.cs">
198198
<SubType>Code</SubType>
199199
</Compile>
200+
<Compile Include="Controllers\AuthorController.cs" />
200201
<Compile Include="Controllers\BookController.cs" />
201202
<Compile Include="Controllers\NavigationController.cs" />
202203
<Compile Include="Controllers\UserController.cs" />
@@ -253,55 +254,8 @@
253254
<Content Include="Content\themes\base\images\ui-icons_454545_256x240.png" />
254255
<Content Include="Content\themes\base\images\ui-icons_888888_256x240.png" />
255256
<Content Include="Content\themes\base\images\ui-icons_cd0a0a_256x240.png" />
256-
<Content Include="Content\themes\base\jquery-ui.css" />
257-
<Content Include="Content\themes\base\jquery.ui.accordion.css" />
258-
<Content Include="Content\themes\base\jquery.ui.all.css" />
259-
<Content Include="Content\themes\base\jquery.ui.autocomplete.css" />
260-
<Content Include="Content\themes\base\jquery.ui.base.css" />
261-
<Content Include="Content\themes\base\jquery.ui.button.css" />
262-
<Content Include="Content\themes\base\jquery.ui.core.css" />
263-
<Content Include="Content\themes\base\jquery.ui.datepicker.css" />
264-
<Content Include="Content\themes\base\jquery.ui.dialog.css" />
265-
<Content Include="Content\themes\base\jquery.ui.progressbar.css" />
266-
<Content Include="Content\themes\base\jquery.ui.resizable.css" />
267-
<Content Include="Content\themes\base\jquery.ui.selectable.css" />
268-
<Content Include="Content\themes\base\jquery.ui.slider.css" />
269-
<Content Include="Content\themes\base\jquery.ui.tabs.css" />
270-
<Content Include="Content\themes\base\jquery.ui.theme.css" />
271-
<Content Include="Content\themes\base\minified\images\ui-bg_flat_0_aaaaaa_40x100.png" />
272-
<Content Include="Content\themes\base\minified\images\ui-bg_flat_75_ffffff_40x100.png" />
273-
<Content Include="Content\themes\base\minified\images\ui-bg_glass_55_fbf9ee_1x400.png" />
274-
<Content Include="Content\themes\base\minified\images\ui-bg_glass_65_ffffff_1x400.png" />
275-
<Content Include="Content\themes\base\minified\images\ui-bg_glass_75_dadada_1x400.png" />
276-
<Content Include="Content\themes\base\minified\images\ui-bg_glass_75_e6e6e6_1x400.png" />
277-
<Content Include="Content\themes\base\minified\images\ui-bg_glass_95_fef1ec_1x400.png" />
278-
<Content Include="Content\themes\base\minified\images\ui-bg_highlight-soft_75_cccccc_1x100.png" />
279-
<Content Include="Content\themes\base\minified\images\ui-icons_222222_256x240.png" />
280-
<Content Include="Content\themes\base\minified\images\ui-icons_2e83ff_256x240.png" />
281-
<Content Include="Content\themes\base\minified\images\ui-icons_454545_256x240.png" />
282-
<Content Include="Content\themes\base\minified\images\ui-icons_888888_256x240.png" />
283-
<Content Include="Content\themes\base\minified\images\ui-icons_cd0a0a_256x240.png" />
284-
<Content Include="Content\themes\base\minified\jquery-ui.min.css" />
285-
<Content Include="Content\themes\base\minified\jquery.ui.accordion.min.css" />
286-
<Content Include="Content\themes\base\minified\jquery.ui.autocomplete.min.css" />
287-
<Content Include="Content\themes\base\minified\jquery.ui.button.min.css" />
288-
<Content Include="Content\themes\base\minified\jquery.ui.core.min.css" />
289-
<Content Include="Content\themes\base\minified\jquery.ui.datepicker.min.css" />
290-
<Content Include="Content\themes\base\minified\jquery.ui.dialog.min.css" />
291-
<Content Include="Content\themes\base\minified\jquery.ui.progressbar.min.css" />
292-
<Content Include="Content\themes\base\minified\jquery.ui.resizable.min.css" />
293-
<Content Include="Content\themes\base\minified\jquery.ui.selectable.min.css" />
294-
<Content Include="Content\themes\base\minified\jquery.ui.slider.min.css" />
295-
<Content Include="Content\themes\base\minified\jquery.ui.tabs.min.css" />
296-
<Content Include="Content\themes\base\minified\jquery.ui.theme.min.css" />
297257
<Content Include="fonts\glyphicons-halflings-regular.svg" />
298258
<Content Include="Global.asax" />
299-
<Content Include="fonts\glyphicons-halflings-regular.woff2" />
300-
<Content Include="fonts\glyphicons-halflings-regular.woff" />
301-
<Content Include="fonts\glyphicons-halflings-regular.ttf" />
302-
<Content Include="fonts\glyphicons-halflings-regular.eot" />
303-
<Content Include="Content\bootstrap-theme.css.map" />
304-
<Content Include="Content\bootstrap.css.map" />
305259
<Content Include="Content\Site1.scss">
306260
<Compile>True</Compile>
307261
<Minify>True</Minify>
@@ -317,25 +271,24 @@
317271
<Content Include="Content\Admin.css.map">
318272
<DependentUpon>Admin.css</DependentUpon>
319273
</Content>
274+
<Content Include="Icon.png" />
320275
<Content Include="log.txt">
321276
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
322277
</Content>
323278
<Content Include="Scripts\addCommet.js" />
324279
<Content Include="Scripts\AddField.js" />
325-
<Content Include="Scripts\b.js" />
280+
<Content Include="Scripts\bootstrap3-typeahead.js" />
281+
<Content Include="Scripts\bootstrap.js" />
326282
<Content Include="Scripts\bootstrap.min.js.map">
327283
<DependentUpon>bootstrap.min.js</DependentUpon>
328284
</Content>
329-
<None Include="Scripts\jquery-1.9.1.intellisense.js" />
330-
<Content Include="Scripts\bootstrap.js" />
331285
<Content Include="Scripts\bootstrap.min.js" />
332286
<Content Include="Scripts\common.js" />
333287
<Content Include="Scripts\jquery.autocomplete.js" />
334288
<Content Include="Scripts\jquery.fileupload.js" />
289+
<Content Include="Scripts\npm.js" />
335290
<Content Include="Scripts\rate.js" />
336-
<Content Include="Scripts\jquery-1.9.1.js" />
337291
<Content Include="Scripts\jquery-1.9.1.min.js" />
338-
<Content Include="Scripts\jquery-1.9.1.min.map" />
339292
<Content Include="Scripts\jquery.unobtrusive-ajax.min.js.map">
340293
<DependentUpon>jquery.unobtrusive-ajax.min.js</DependentUpon>
341294
</Content>
@@ -345,8 +298,13 @@
345298
<Content Include="Scripts\jquery-ui-1.8.24.min.js.map">
346299
<DependentUpon>jquery-ui-1.8.24.min.js</DependentUpon>
347300
</Content>
301+
<Content Include="fonts\glyphicons-halflings-regular.woff2" />
302+
<Content Include="fonts\glyphicons-halflings-regular.woff" />
303+
<Content Include="fonts\glyphicons-halflings-regular.ttf" />
304+
<Content Include="fonts\glyphicons-halflings-regular.eot" />
305+
<Content Include="Content\bootstrap-theme.css.map" />
306+
<Content Include="Content\bootstrap.css.map" />
348307
<None Include="Scripts\jquery.validate-vsdoc.js" />
349-
<Content Include="Scripts\jquery-ui-1.8.24.js" />
350308
<Content Include="Scripts\jquery-ui-1.8.24.min.js" />
351309
<Content Include="Scripts\jquery.unobtrusive-ajax.js" />
352310
<Content Include="Scripts\jquery.unobtrusive-ajax.min.js" />
@@ -357,7 +315,6 @@
357315
<Content Include="Scripts\knockout-2.2.0.debug.js" />
358316
<Content Include="Scripts\knockout-2.2.0.js" />
359317
<Content Include="Scripts\modernizr-2.6.2.js" />
360-
<Content Include="Scripts\npm.js" />
361318
<Content Include="Scripts\save-image.js" />
362319
<Content Include="Scripts\star-rating.js" />
363320
<Content Include="Scripts\star-rating.min.js" />
@@ -410,6 +367,7 @@
410367
<Content Include="Views\Book\BookRating.cshtml" />
411368
<Content Include="Views\Nav\Genres.cshtml" />
412369
<Content Include="Views\Nav\Authors.cshtml" />
370+
<Content Include="Views\Author\Index.cshtml" />
413371
</ItemGroup>
414372
<ItemGroup>
415373
<Folder Include="App_Data\" />

BookStore/Content/Site1.css

+35-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BookStore/Content/Site1.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)