Skip to content

Instantly share code, notes, and snippets.

View ismcagdas's full-sized avatar

İsmail ÇAĞDAŞ ismcagdas

  • Volosoft
  • Istanbul, Turkey
View GitHub Profile
@ismcagdas
ismcagdas / Index.cshtml
Created January 30, 2018 20:29
Acme.HeroShop - Index.cshtml - 4
@Html.Raw(ViewData["SpaHtml"])
@section scripts {
<script src="~/dist/scripts.bundle.js" asp-append-version="true"></script>
<script src="~/dist/inline.bundle.js" asp-append-version="true"></script>
<script src="~/dist/polyfills.bundle.js" asp-append-version="true"></script>
<script src="~/dist/vendor.bundle.js" asp-append-version="true"></script>
<script src="~/dist/main.bundle.js" asp-append-version="true"></script>
}
@ismcagdas
ismcagdas / _Layout.cshtml
Created January 30, 2018 20:28
Acme.HeroShop - _Layout.cshtml
<!DOCTYPE html>
<html>
<head>
<base href="/" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"]</title>
@Html.Raw(ViewData["Meta"])
@Html.Raw(ViewData["Links"])
@Html.Raw(ViewData["Styles"])
@ismcagdas
ismcagdas / InitialHeroBuilder.cs
Created January 30, 2018 20:19
Acme.HeroShop - InitialHeroBuilder.cs
public class InitialHeroBuilder
{
private readonly HeroShopDbContext _context;
public InitialHeroBuilder(HeroShopDbContext context)
{
_context = context;
}
public void Create()
@ismcagdas
ismcagdas / app.component.html
Created January 30, 2018 13:02
Acme.HeroShop - app.component.html - 4
<header>
<div class="navbar navbar-dark bg-dark box-shadow">
<div class="container d-flex justify-content-between">
<a href="#" class="navbar-brand d-flex align-items-center">
<strong>Acme.HeroShop</strong>
</a>
</div>
</div>
</header>
@ismcagdas
ismcagdas / app.component.ts
Created January 30, 2018 13:01
Acme.HeroShop - app.component.ts - 4
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit {
heroCompanies: any = [];
@ismcagdas
ismcagdas / appsettings.json
Created January 30, 2018 12:12
Acme.HeroShop - appsettings.json
{
"ConnectionStrings": {
"Default": "Server=localhost; Database=HeroShopDb; Trusted_Connection=True;"
},
"Authentication": {
"JwtBearer": {
"IsEnabled": "false",
"SecurityKey": "HeroShop_C421AAEE0D114E9C",
"Issuer": "HeroShop",
"Audience": "HeroShop"
@ismcagdas
ismcagdas / Startup.cs
Created January 30, 2018 12:07
Acme.HeroShop - Startup.cs - 3
public class Startup
{
public IServiceProvider ConfigureServices(IServiceCollection services)
{
services.AddMvc();
services.AddNodeServices();
return services.AddAbp<HeroShopPublicModule>();
}
@ismcagdas
ismcagdas / app.component.html
Created January 30, 2018 10:23
Acme.HeroShop - app.component.html - 3
<header>
<div class="navbar navbar-dark bg-dark box-shadow">
<div class="container d-flex justify-content-between">
<a href="#" class="navbar-brand d-flex align-items-center">
<strong>Acme.HeroShop</strong>
</a>
</div>
</div>
</header>
@ismcagdas
ismcagdas / app.component.ts
Created January 30, 2018 10:21
Acme.HeroShop - app.component.ts - 3
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit {
title = 'app';
heroCompanies: any = [];
@ismcagdas
ismcagdas / HeroAppService.cs
Created January 29, 2018 19:47
Acme.HeroShop - HeroAppService.cs
public class HeroAppService : HeroShopAppServiceBase, IHeroAppService
{
private readonly IRepository<Hero> _heroRepository;
private readonly IRepository<HeroCompany> _heroCompanyRepository;
public HeroAppService(
IRepository<Hero> heroRepository,
IRepository<HeroCompany> heroCompanyRepository)
{
_heroRepository = heroRepository;