Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
aysenaozcan committed Dec 28, 2023
1 parent 80bc808 commit 59c4528
Show file tree
Hide file tree
Showing 65 changed files with 1,040 additions and 56 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified CoreDemo/.vs/CoreDemo/v17/.suo
Binary file not shown.
1 change: 1 addition & 0 deletions CoreDemo/BussinessLayer/Abstract/IBlogService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ public interface IBlogService
List<Blog> GetList();
Blog GetById(int id);
List<Blog> GetBlogListWithCategory();
List<Blog> GetBlogListByWriter();
}
}
10 changes: 10 additions & 0 deletions CoreDemo/BussinessLayer/Concrete/BlogManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,15 @@ public List<Blog> GetList()
{
return _blogDal.GetListAll();
}

public List<Blog> GetBlogListByWriter(int id)
{
return _blogDal.GetListAll(x=>x.WriterId == id);
}

public List<Blog> GetBlogListByWriter()
{
throw new NotImplementedException();
}
}
}
Binary file modified CoreDemo/BussinessLayer/bin/Debug/net6.0/BussinessLayer.dll
Binary file not shown.
Binary file modified CoreDemo/BussinessLayer/bin/Debug/net6.0/BussinessLayer.pdb
Binary file not shown.
Binary file modified CoreDemo/BussinessLayer/bin/Debug/net6.0/DataAccessLayer.dll
Binary file not shown.
Binary file modified CoreDemo/BussinessLayer/bin/Debug/net6.0/DataAccessLayer.pdb
Binary file not shown.
Binary file modified CoreDemo/BussinessLayer/bin/Debug/net6.0/EntityLayer.dll
Binary file not shown.
Binary file modified CoreDemo/BussinessLayer/bin/Debug/net6.0/EntityLayer.pdb
Binary file not shown.
Binary file not shown.
Binary file modified CoreDemo/BussinessLayer/obj/Debug/net6.0/BussinessLayer.dll
Binary file not shown.
Binary file modified CoreDemo/BussinessLayer/obj/Debug/net6.0/BussinessLayer.pdb
Binary file not shown.
Binary file modified CoreDemo/BussinessLayer/obj/Debug/net6.0/ref/BussinessLayer.dll
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion CoreDemo/CoreDemo/CoreDemo.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
Expand Down
4 changes: 2 additions & 2 deletions CoreDemo/CoreDemo/CoreDemo.csproj.user
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<PropertyGroup>
<Controller_SelectedScaffolderID>MvcControllerEmptyScaffolder</Controller_SelectedScaffolderID>
<Controller_SelectedScaffolderCategoryPath>root/Common/MVC/Controller</Controller_SelectedScaffolderCategoryPath>
<View_SelectedScaffolderID>RazorViewEmptyScaffolder</View_SelectedScaffolderID>
<View_SelectedScaffolderID>RazorViewScaffolder</View_SelectedScaffolderID>
<View_SelectedScaffolderCategoryPath>root/Common/MVC/View</View_SelectedScaffolderCategoryPath>
<WebStackScaffolding_EnablerDialogWidth>650</WebStackScaffolding_EnablerDialogWidth>
<WebStackScaffolding_ViewDialogWidth>650</WebStackScaffolding_ViewDialogWidth>
<WebStackScaffolding_IsLayoutPageSelected>True</WebStackScaffolding_IsLayoutPageSelected>
<WebStackScaffolding_IsPartialViewSelected>False</WebStackScaffolding_IsPartialViewSelected>
<WebStackScaffolding_IsPartialViewSelected>True</WebStackScaffolding_IsPartialViewSelected>
<WebStackScaffolding_IsReferencingScriptLibrariesSelected>False</WebStackScaffolding_IsReferencingScriptLibrariesSelected>
<WebStackScaffolding_LayoutPageFile>~/Views/Shared/UserLayout.cshtml</WebStackScaffolding_LayoutPageFile>
</PropertyGroup>
Expand Down
16 changes: 16 additions & 0 deletions CoreDemo/CoreDemo/ViewComponents/Blog/WritersLastBlog.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using BussinessLayer.Concrete;
using DataAccessLayer.EntityFramework;
using Microsoft.AspNetCore.Mvc;

namespace CoreDemo.ViewComponents.Blog
{
public class WritersLastBlog:ViewComponent
{
BlogManager bm=new BlogManager(new EfBlogRepository());
public IViewComponentResult Invoke()
{
var values = bm.GetBlogListByWriter(1);
return View(values);
}
}
}
41 changes: 2 additions & 39 deletions CoreDemo/CoreDemo/Views/Blog/BlogReadAll.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -82,45 +82,8 @@

</div>
@await Component.InvokeAsync("CategoryList")
<div class="tech-btm">
<h4>Yazarın Diğer Yazıları</h4>

<div class="blog-grids row mb-3">
<div class="col-md-5 blog-grid-left">
<a href="single.html">
<img src="~/CoreBlogTema/web/images/1.jpg" class="img-fluid" alt="">
</a>
</div>
<div class="col-md-7 blog-grid-right">

<h5>
<a href="single.html">Pellentesque dui, non felis. Maecenas male non felis </a>
</h5>
<div class="sub-meta">
<span>
<i class="far fa-clock"></i> 20 Jan, 2018</span>
</div>
</div>

</div>
<div class="blog-grids row mb-3">
<div class="col-md-5 blog-grid-left">
<a href="single.html">
<img src="~/CoreBlogTema/web/images/6.jpg" class="img-fluid" alt="">
</a>
</div>
<div class="col-md-7 blog-grid-right">
<h5>
<a href="single.html">Pellentesque dui, non felis. Maecenas male non felis </a>
</h5>
<div class="sub-meta">
<span>
<i class="far fa-clock"></i> 20 Feb, 2018</span>
</div>
</div>

</div>
</div>
@await Component.InvokeAsync("WritersLastBlog")

<div class="single-gd my-5 tech-btm">
<h4>Our Progress</h4>
<div class="progress">
Expand Down
2 changes: 1 addition & 1 deletion CoreDemo/CoreDemo/Views/Blog/Index.cshtml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@using EntityLayer.Concrete

@model List<Blog>

@{
Layout = "~/Views/Shared/UserLayout.cshtml";
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<div class="tech-btm">
<h4>Yazarın Diğer Yazıları</h4>

<div class="blog-grids row mb-3">
<div class="col-md-5 blog-grid-left">
<a href="single.html">
<img src="~/CoreBlogTema/web/images/1.jpg" class="img-fluid" alt="">
</a>
</div>
<div class="col-md-7 blog-grid-right">

<h5>
<a href="single.html">Pellentesque dui, non felis. Maecenas male non felis </a>
</h5>
<div class="sub-meta">
<span>
<i class="far fa-clock"></i> 20 Jan, 2018
</span>
</div>
</div>

</div>
<div class="blog-grids row mb-3">
<div class="col-md-5 blog-grid-left">
<a href="single.html">
<img src="~/CoreBlogTema/web/images/6.jpg" class="img-fluid" alt="">
</a>
</div>
<div class="col-md-7 blog-grid-right">
<h5>
<a href="single.html">Pellentesque dui, non felis. Maecenas male non felis </a>
</h5>
<div class="sub-meta">
<span>
<i class="far fa-clock"></i> 20 Feb, 2018
</span>
</div>
</div>

</div>
</div>
1 change: 1 addition & 0 deletions CoreDemo/CoreDemo/Views/_ViewImports.cshtml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@using CoreDemo
@using CoreDemo.Models
@using EntityLayer.Concrete
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
Binary file modified CoreDemo/CoreDemo/bin/Debug/net6.0/BussinessLayer.dll
Binary file not shown.
Binary file modified CoreDemo/CoreDemo/bin/Debug/net6.0/BussinessLayer.pdb
Binary file not shown.
Binary file modified CoreDemo/CoreDemo/bin/Debug/net6.0/CoreDemo.dll
Binary file not shown.
Binary file modified CoreDemo/CoreDemo/bin/Debug/net6.0/CoreDemo.pdb
Binary file not shown.
Binary file modified CoreDemo/CoreDemo/bin/Debug/net6.0/DataAccessLayer.dll
Binary file not shown.
Binary file modified CoreDemo/CoreDemo/bin/Debug/net6.0/DataAccessLayer.pdb
Binary file not shown.
Binary file modified CoreDemo/CoreDemo/bin/Debug/net6.0/EntityLayer.dll
Binary file not shown.
Binary file modified CoreDemo/CoreDemo/bin/Debug/net6.0/EntityLayer.pdb
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ build_metadata.AdditionalFiles.CssScope =
build_metadata.AdditionalFiles.TargetPath = Vmlld3NcU2hhcmVkXENvbXBvbmVudHNcQ29tbWVudExpc3RcRGVmYXVsdC5jc2h0bWw=
build_metadata.AdditionalFiles.CssScope =

[D:/repos/Asp.Net-Core-6.0-Project/CoreDemo/CoreDemo/Views/Shared/Components/WriterLastBlog/Default.cshtml]
build_metadata.AdditionalFiles.TargetPath = Vmlld3NcU2hhcmVkXENvbXBvbmVudHNcV3JpdGVyTGFzdEJsb2dcRGVmYXVsdC5jc2h0bWw=
build_metadata.AdditionalFiles.CssScope =

[D:/repos/Asp.Net-Core-6.0-Project/CoreDemo/CoreDemo/Views/Shared/Error.cshtml]
build_metadata.AdditionalFiles.TargetPath = Vmlld3NcU2hhcmVkXEVycm9yLmNzaHRtbA==
build_metadata.AdditionalFiles.CssScope =
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2931d25aa39207271ccc5f57953e94e18b362db0
8df06d9ff7c8c023a01f728bcdc19d0ba318360e
Binary file modified CoreDemo/CoreDemo/obj/Debug/net6.0/CoreDemo.dll
Binary file not shown.
Binary file modified CoreDemo/CoreDemo/obj/Debug/net6.0/CoreDemo.pdb
Binary file not shown.
2 changes: 1 addition & 1 deletion CoreDemo/CoreDemo/obj/Debug/net6.0/project.razor.vs.json

Large diffs are not rendered by default.

Binary file modified CoreDemo/CoreDemo/obj/Debug/net6.0/ref/CoreDemo.dll
Binary file not shown.
Binary file modified CoreDemo/CoreDemo/obj/Debug/net6.0/refint/CoreDemo.dll
Binary file not shown.
Loading

0 comments on commit 59c4528

Please sign in to comment.