├── .gitattributes ├── .gitignore ├── UdemyAngularBlogCore.API.sln ├── UdemyAngularBlogCore.API ├── Controllers │ ├── ArticlesController.cs │ ├── AuthController.cs │ ├── CategoriesController.cs │ ├── CommentsController.cs │ ├── HelperController.cs │ └── ValuesController.cs ├── Models │ ├── AdminUser.cs │ ├── Article.cs │ ├── Category.cs │ ├── Comment.cs │ ├── Contact.cs │ └── UdemyAngularBlogDBContext.cs ├── Program.cs ├── Properties │ └── launchSettings.json ├── Responses │ ├── ArticleResponse.cs │ └── CategoryResponse.cs ├── Startup.cs ├── UdemyAngularBlogCore.API.csproj ├── appsettings.Development.json ├── appsettings.json └── wwwroot │ └── articlePictures │ ├── 147c941f-c2c1-4f30-a2f3-9f7e2cb37081.jpg │ ├── 53ab1b06-b619-4f9b-849b-51c4ffb37bcc.jpg │ ├── 70123ba8-73b0-44b5-8bd9-7cb56cf0b589.png │ ├── 773d8d02-a293-4a0b-83d8-cb68f7fe6a96.png │ ├── 98f5d9be-0f75-4997-b863-f78c60317380.jpg │ ├── a2bc7073-75c4-4b2c-a9de-4b08a5148a08.jpg │ ├── b9805386-d4ec-4877-b3fa-d89b6efbc467.png │ ├── fc8e1cc7-8301-4aaf-bc7f-dcfa7fb62015.jpg │ └── fe9cdc71-3473-4e97-aec7-578a012fffa3.png └── desktop.ini /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.userosscache 8 | *.sln.docstates 9 | 10 | # User-specific files (MonoDevelop/Xamarin Studio) 11 | *.userprefs 12 | 13 | # Build results 14 | [Dd]ebug/ 15 | [Dd]ebugPublic/ 16 | [Rr]elease/ 17 | [Rr]eleases/ 18 | x64/ 19 | x86/ 20 | bld/ 21 | [Bb]in/ 22 | [Oo]bj/ 23 | [Ll]og/ 24 | 25 | # Visual Studio 2015 cache/options directory 26 | .vs/ 27 | # Uncomment if you have tasks that create the project's static files in wwwroot 28 | #wwwroot/ 29 | 30 | # MSTest test Results 31 | [Tt]est[Rr]esult*/ 32 | [Bb]uild[Ll]og.* 33 | 34 | # NUNIT 35 | *.VisualState.xml 36 | TestResult.xml 37 | 38 | # Build Results of an ATL Project 39 | [Dd]ebugPS/ 40 | [Rr]eleasePS/ 41 | dlldata.c 42 | 43 | # DNX 44 | project.lock.json 45 | project.fragment.lock.json 46 | artifacts/ 47 | 48 | *_i.c 49 | *_p.c 50 | *_i.h 51 | *.ilk 52 | *.meta 53 | *.obj 54 | *.pch 55 | *.pdb 56 | *.pgc 57 | *.pgd 58 | *.rsp 59 | *.sbr 60 | *.tlb 61 | *.tli 62 | *.tlh 63 | *.tmp 64 | *.tmp_proj 65 | *.log 66 | *.vspscc 67 | *.vssscc 68 | .builds 69 | *.pidb 70 | *.svclog 71 | *.scc 72 | 73 | # Chutzpah Test files 74 | _Chutzpah* 75 | 76 | # Visual C++ cache files 77 | ipch/ 78 | *.aps 79 | *.ncb 80 | *.opendb 81 | *.opensdf 82 | *.sdf 83 | *.cachefile 84 | *.VC.db 85 | *.VC.VC.opendb 86 | 87 | # Visual Studio profiler 88 | *.psess 89 | *.vsp 90 | *.vspx 91 | *.sap 92 | 93 | # TFS 2012 Local Workspace 94 | $tf/ 95 | 96 | # Guidance Automation Toolkit 97 | *.gpState 98 | 99 | # ReSharper is a .NET coding add-in 100 | _ReSharper*/ 101 | *.[Rr]e[Ss]harper 102 | *.DotSettings.user 103 | 104 | # JustCode is a .NET coding add-in 105 | .JustCode 106 | 107 | # TeamCity is a build add-in 108 | _TeamCity* 109 | 110 | # DotCover is a Code Coverage Tool 111 | *.dotCover 112 | 113 | # NCrunch 114 | _NCrunch_* 115 | .*crunch*.local.xml 116 | nCrunchTemp_* 117 | 118 | # MightyMoose 119 | *.mm.* 120 | AutoTest.Net/ 121 | 122 | # Web workbench (sass) 123 | .sass-cache/ 124 | 125 | # Installshield output folder 126 | [Ee]xpress/ 127 | 128 | # DocProject is a documentation generator add-in 129 | DocProject/buildhelp/ 130 | DocProject/Help/*.HxT 131 | DocProject/Help/*.HxC 132 | DocProject/Help/*.hhc 133 | DocProject/Help/*.hhk 134 | DocProject/Help/*.hhp 135 | DocProject/Help/Html2 136 | DocProject/Help/html 137 | 138 | # Click-Once directory 139 | publish/ 140 | 141 | # Publish Web Output 142 | *.[Pp]ublish.xml 143 | *.azurePubxml 144 | # TODO: Comment the next line if you want to checkin your web deploy settings 145 | # but database connection strings (with potential passwords) will be unencrypted 146 | #*.pubxml 147 | *.publishproj 148 | 149 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 150 | # checkin your Azure Web App publish settings, but sensitive information contained 151 | # in these scripts will be unencrypted 152 | PublishScripts/ 153 | 154 | # NuGet Packages 155 | *.nupkg 156 | # The packages folder can be ignored because of Package Restore 157 | **/packages/* 158 | # except build/, which is used as an MSBuild target. 159 | !**/packages/build/ 160 | # Uncomment if necessary however generally it will be regenerated when needed 161 | #!**/packages/repositories.config 162 | # NuGet v3's project.json files produces more ignoreable files 163 | *.nuget.props 164 | *.nuget.targets 165 | 166 | # Microsoft Azure Build Output 167 | csx/ 168 | *.build.csdef 169 | 170 | # Microsoft Azure Emulator 171 | ecf/ 172 | rcf/ 173 | 174 | # Windows Store app package directories and files 175 | AppPackages/ 176 | BundleArtifacts/ 177 | Package.StoreAssociation.xml 178 | _pkginfo.txt 179 | 180 | # Visual Studio cache files 181 | # files ending in .cache can be ignored 182 | *.[Cc]ache 183 | # but keep track of directories ending in .cache 184 | !*.[Cc]ache/ 185 | 186 | # Others 187 | ClientBin/ 188 | ~$* 189 | *~ 190 | *.dbmdl 191 | *.dbproj.schemaview 192 | *.jfm 193 | *.pfx 194 | *.publishsettings 195 | node_modules/ 196 | orleans.codegen.cs 197 | 198 | # Since there are multiple workflows, uncomment next line to ignore bower_components 199 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 200 | #bower_components/ 201 | 202 | # RIA/Silverlight projects 203 | Generated_Code/ 204 | 205 | # Backup & report files from converting an old project file 206 | # to a newer Visual Studio version. Backup files are not needed, 207 | # because we have git ;-) 208 | _UpgradeReport_Files/ 209 | Backup*/ 210 | UpgradeLog*.XML 211 | UpgradeLog*.htm 212 | 213 | # SQL Server files 214 | *.mdf 215 | *.ldf 216 | 217 | # Business Intelligence projects 218 | *.rdl.data 219 | *.bim.layout 220 | *.bim_*.settings 221 | 222 | # Microsoft Fakes 223 | FakesAssemblies/ 224 | 225 | # GhostDoc plugin setting file 226 | *.GhostDoc.xml 227 | 228 | # Node.js Tools for Visual Studio 229 | .ntvs_analysis.dat 230 | 231 | # Visual Studio 6 build log 232 | *.plg 233 | 234 | # Visual Studio 6 workspace options file 235 | *.opt 236 | 237 | # Visual Studio LightSwitch build output 238 | **/*.HTMLClient/GeneratedArtifacts 239 | **/*.DesktopClient/GeneratedArtifacts 240 | **/*.DesktopClient/ModelManifest.xml 241 | **/*.Server/GeneratedArtifacts 242 | **/*.Server/ModelManifest.xml 243 | _Pvt_Extensions 244 | 245 | # Paket dependency manager 246 | .paket/paket.exe 247 | paket-files/ 248 | 249 | # FAKE - F# Make 250 | .fake/ 251 | 252 | # JetBrains Rider 253 | .idea/ 254 | *.sln.iml 255 | 256 | # CodeRush 257 | .cr/ 258 | 259 | # Python Tools for Visual Studio (PTVS) 260 | __pycache__/ 261 | *.pyc -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.28307.705 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UdemyAngularBlogCore.API", "UdemyAngularBlogCore.API\UdemyAngularBlogCore.API.csproj", "{B0D3BD8D-015B-490B-9372-B148B161FC01}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {B0D3BD8D-015B-490B-9372-B148B161FC01}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {B0D3BD8D-015B-490B-9372-B148B161FC01}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {B0D3BD8D-015B-490B-9372-B148B161FC01}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {B0D3BD8D-015B-490B-9372-B148B161FC01}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {1FAB0EFB-5662-4CEB-9C64-D8733E268605} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/Controllers/ArticlesController.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Http; 2 | using Microsoft.AspNetCore.Mvc; 3 | using Microsoft.EntityFrameworkCore; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Globalization; 7 | using System.IO; 8 | using System.Linq; 9 | using System.Threading.Tasks; 10 | using UdemyAngularBlogCore.API.Models; 11 | using UdemyAngularBlogCore.API.Responses; 12 | 13 | namespace UdemyAngularBlogCore.API.Controllers 14 | { 15 | [Route("api/[controller]")] 16 | [ApiController] 17 | public class ArticlesController : ControllerBase 18 | { 19 | private readonly UdemyAngularBlogDBContext _context; 20 | 21 | //api/articles 22 | public ArticlesController(UdemyAngularBlogDBContext context) 23 | { 24 | _context = context; 25 | } 26 | 27 | // GET: api/Articles/1/5 28 | [HttpGet] 29 | public IActionResult GetArticle() 30 | { 31 | var articles = _context.Article.Include(a => a.Category).Include(b => b.Comment).OrderByDescending(x => x.PublishDate).ToList().Select(y => new ArticleResponse() 32 | { 33 | Id = y.Id, 34 | Title = y.Title, 35 | Picture = y.Picture, 36 | Category = new CategoryResponse() { Id = y.Category.Id, Name = y.Category.Name }, 37 | CommentCount = y.Comment.Count, 38 | 39 | ViewCount = y.ViewCount, 40 | PublishDate = y.PublishDate 41 | }); 42 | return Ok(articles); 43 | } 44 | 45 | [HttpGet("{page}/{pageSize}")] 46 | public IActionResult GetArticle(int page = 1, int pageSize = 5) 47 | { 48 | System.Threading.Thread.Sleep(3000); 49 | 50 | try 51 | { 52 | IQueryable
query; 53 | 54 | query = _context.Article.Include(x => x.Category).Include(y => y.Comment).OrderByDescending(z => z.PublishDate); 55 | 56 | int totalCount = query.Count(); 57 | 58 | // 5*(1-1) => 0 59 | //5*(2-1)=>5 60 | var articlesResponse = query.Skip((pageSize * (page - 1))).Take(5).ToList().Select(x => new ArticleResponse() 61 | { 62 | Id = x.Id, 63 | Title = x.Title, 64 | ContentMain = x.ContentMain, 65 | ContentSummary = x.ContentSummary, 66 | Picture = x.Picture, 67 | ViewCount = x.ViewCount, 68 | CommentCount = x.Comment.Count, 69 | Category = new CategoryResponse() { Id = x.Category.Id, Name = x.Category.Name } 70 | }); 71 | 72 | var result = new 73 | { 74 | TotalCount = totalCount, 75 | Articles = articlesResponse 76 | }; 77 | return Ok(result); 78 | } 79 | catch (System.Exception ex) 80 | { 81 | return BadRequest(ex.Message); 82 | } 83 | } 84 | 85 | //localhost/api/articles/GetArticlesWithCategory/2/1/5 86 | [HttpGet] 87 | [Route("GetArticlesWithCategory/{categoryId}/{page}/{pageSize}")] 88 | public IActionResult GetArticlesWithCategory(int categoryId, int page = 1, int pageSize = 5) 89 | { 90 | IQueryable
query = _context.Article.Include(x => x.Category).Include(y => y.Comment).Where(z => z.CategoryId == categoryId).OrderByDescending(x => x.PublishDate); 91 | 92 | var queryResult = ArticlesPagination(query, page, pageSize); 93 | 94 | var result = new 95 | { 96 | TotalCount = queryResult.Item2, 97 | Articles = queryResult.Item1 98 | }; 99 | return Ok(result); 100 | } 101 | 102 | [HttpGet] 103 | [Route("SearchArticles/{searchText}/{page}/{pageSize}")] 104 | public IActionResult SearchArticles(string searchText, int page = 1, int pageSize = 5) 105 | { 106 | IQueryable
query; 107 | 108 | query = _context.Article.Include(x => x.Category).Include(y => y.Comment).Where(z => z.Title.Contains(searchText)).OrderByDescending(f => f.PublishDate); 109 | 110 | var resultQuery = ArticlesPagination(query, page, pageSize); 111 | 112 | var result = new 113 | { 114 | Articles = resultQuery.Item1, 115 | TotalCount = resultQuery.Item2 116 | }; 117 | 118 | return Ok(result); 119 | } 120 | 121 | [HttpGet] 122 | [Route("GetArticlesByMostView")] 123 | public IActionResult GetArticlesByMostView() 124 | { 125 | System.Threading.Thread.Sleep(2000); 126 | var articles = _context.Article.OrderByDescending(x => x.ViewCount).Take(5).Select(x => new ArticleResponse() 127 | { 128 | Title = x.Title, 129 | Id = x.Id 130 | }); 131 | 132 | return Ok(articles); 133 | } 134 | 135 | [HttpGet] 136 | [Route("GetArticlesArchive")] 137 | public IActionResult GetArticlesArchive() 138 | { 139 | System.Threading.Thread.Sleep(1000); 140 | var query = _context.Article.GroupBy(x => new { x.PublishDate.Year, x.PublishDate.Month }).Select(y => 141 | new 142 | { 143 | year = y.Key.Year, 144 | month = y.Key.Month, 145 | count = y.Count(), 146 | monthName = new DateTime(y.Key.Year, y.Key.Month, 1).ToString("MMMM", CultureInfo.CreateSpecificCulture("tr")) 147 | }); 148 | 149 | return Ok(query); 150 | } 151 | 152 | [HttpGet] 153 | [Route("GetArticleArchiveList/{year}/{month}/{page}/{pageSize}")] 154 | public IActionResult GetArticleArchiveList(int year, int month, int page, int pageSize) 155 | { 156 | System.Threading.Thread.Sleep(1700); 157 | 158 | IQueryable
query; 159 | query = _context.Article.Include(x => x.Category).Include(y => y.Comment).Where(z => z.PublishDate.Year == year && z.PublishDate.Month == month).OrderByDescending(f => f.PublishDate); 160 | 161 | var resultQuery = ArticlesPagination(query, page, pageSize); 162 | 163 | var result = new 164 | { 165 | Articles = resultQuery.Item1, 166 | TotalCount = resultQuery.Item2 167 | }; 168 | 169 | return Ok(result); 170 | } 171 | 172 | // GET: api/Articles/5 173 | [HttpGet("{id}")] 174 | public IActionResult GetArticle(int id) 175 | { 176 | System.Threading.Thread.Sleep(2000); 177 | 178 | var article = _context.Article.Include(x => x.Category).Include(y => y.Comment).FirstOrDefault(z => z.Id == id); 179 | 180 | if (article == null) 181 | { 182 | return NotFound(); 183 | } 184 | ArticleResponse articleResponse = new ArticleResponse() 185 | { 186 | Id = article.Id, 187 | Title = article.Title, 188 | ContentMain = article.ContentMain, 189 | ContentSummary = article.ContentSummary, 190 | Picture = article.Picture, 191 | PublishDate = article.PublishDate, 192 | ViewCount = article.ViewCount, 193 | Category = new CategoryResponse() { Id = article.Category.Id, Name = article.Category.Name }, 194 | CommentCount = article.Comment.Count 195 | }; 196 | 197 | return Ok(articleResponse); 198 | } 199 | 200 | // PUT: api/Articles/5 201 | [HttpPut("{id}")] 202 | public async Task PutArticle(int id, Article article) 203 | { 204 | Article firstArticle = _context.Article.Find(id); 205 | 206 | firstArticle.Title = article.Title; 207 | firstArticle.ContentSummary = article.ContentSummary; 208 | firstArticle.ContentMain = article.ContentMain; 209 | firstArticle.CategoryId = article.Category.Id; 210 | firstArticle.Picture = article.Picture; 211 | 212 | try 213 | { 214 | await _context.SaveChangesAsync(); 215 | } 216 | catch (DbUpdateConcurrencyException) 217 | { 218 | if (!ArticleExists(id)) 219 | { 220 | return NotFound(); 221 | } 222 | else 223 | { 224 | throw; 225 | } 226 | } 227 | 228 | return NoContent(); 229 | } 230 | 231 | // POST: api/Articles 232 | [HttpPost] 233 | public async Task PostArticle(Article article) 234 | { 235 | if (article.Category != null) 236 | { 237 | article.CategoryId = article.Category.Id; 238 | } 239 | article.Category = null; 240 | article.ViewCount = 0; 241 | article.PublishDate = DateTime.Now; 242 | 243 | _context.Article.Add(article); 244 | await _context.SaveChangesAsync(); 245 | 246 | return Ok(); 247 | } 248 | 249 | // DELETE: api/Articles/5 250 | [HttpDelete("{id}")] 251 | public async Task DeleteArticle(int id) 252 | { 253 | return Ok(); 254 | var article = await _context.Article.FindAsync(id); 255 | if (article == null) 256 | { 257 | return NotFound(); 258 | } 259 | 260 | _context.Article.Remove(article); 261 | await _context.SaveChangesAsync(); 262 | 263 | return Ok(); 264 | } 265 | 266 | private bool ArticleExists(int id) 267 | { 268 | return _context.Article.Any(e => e.Id == id); 269 | } 270 | 271 | [Route("ArticleViewCountUp/{id}")] 272 | [HttpGet()] 273 | public IActionResult ArticleViewCountUp(int id) 274 | { 275 | Article article = _context.Article.Find(id); 276 | article.ViewCount += 1; 277 | _context.SaveChanges(); 278 | return Ok(); 279 | } 280 | 281 | public System.Tuple, int> ArticlesPagination(IQueryable
query, int page, int pageSize) 282 | { 283 | System.Threading.Thread.Sleep(1500); 284 | 285 | int totalCount = query.Count(); 286 | 287 | var articlesResponse = query.Skip((pageSize * (page - 1))).Take(pageSize).ToList().Select(x => new ArticleResponse() 288 | { 289 | Id = x.Id, 290 | Title = x.Title, 291 | ContentMain = x.ContentMain, 292 | ContentSummary = x.ContentSummary, 293 | Picture = x.Picture, 294 | ViewCount = x.ViewCount, 295 | CommentCount = x.Comment.Count, 296 | Category = new CategoryResponse() { Id = x.Category.Id, Name = x.Category.Name } 297 | }); 298 | 299 | return new System.Tuple, int>(articlesResponse, totalCount); 300 | } 301 | 302 | [HttpPost] 303 | [Route("SaveArticlePicture")] 304 | public async Task SaveArticlePicture(IFormFile picture) 305 | { 306 | var fileName = Guid.NewGuid().ToString() + Path.GetExtension(picture.FileName); 307 | 308 | var path = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot/articlePictures", fileName); 309 | 310 | using (var stream = new FileStream(path, FileMode.Create)) 311 | { 312 | await picture.CopyToAsync(stream); 313 | }; 314 | var result = new 315 | { 316 | path = "https://" + Request.Host + "/articlePictures/" + fileName 317 | }; 318 | 319 | return Ok(result); 320 | } 321 | } 322 | } -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/Controllers/AuthController.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Mvc; 2 | using UdemyAngularBlogCore.API.Models; 3 | 4 | namespace UdemyAngularBlogCore.API.Controllers 5 | { 6 | [Route("api/[controller]/[action]")] 7 | [ApiController] 8 | public class AuthController : ControllerBase 9 | { 10 | [HttpPost] 11 | public IActionResult IsAuthenticated(AdminUser adminUser) 12 | { 13 | bool status = false; 14 | 15 | if (adminUser.Email == "f@outlook.com" && adminUser.Password == "1234") 16 | { 17 | status = true; 18 | } 19 | 20 | var result = new 21 | { 22 | status = status 23 | }; 24 | return Ok(result); 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/Controllers/CategoriesController.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Mvc; 2 | using Microsoft.EntityFrameworkCore; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | using UdemyAngularBlogCore.API.Models; 7 | 8 | namespace UdemyAngularBlogCore.API.Controllers 9 | { 10 | // localhost/api/categories/5 11 | [Route("api/[controller]")] 12 | [ApiController] 13 | public class CategoriesController : ControllerBase 14 | { 15 | private readonly UdemyAngularBlogDBContext _context; 16 | 17 | public CategoriesController(UdemyAngularBlogDBContext context) 18 | { 19 | _context = context; 20 | } 21 | 22 | // GET: api/Categories 23 | [HttpGet] 24 | public async Task>> GetCategory() 25 | { 26 | System.Threading.Thread.Sleep(3000); 27 | 28 | return await _context.Category.ToListAsync(); 29 | } 30 | 31 | // GET: api/Categories/5 32 | [HttpGet("{id}")] 33 | public async Task> GetCategory(int id) 34 | { 35 | var category = await _context.Category.FindAsync(id); 36 | 37 | if (category == null) 38 | { 39 | return NotFound(); 40 | } 41 | 42 | return category; 43 | } 44 | 45 | // PUT: api/Categories/5 46 | [HttpPut("{id}")] 47 | public async Task PutCategory(int id, Category category) 48 | { 49 | if (id != category.Id) 50 | { 51 | return BadRequest(); 52 | } 53 | 54 | _context.Entry(category).State = EntityState.Modified; 55 | 56 | try 57 | { 58 | await _context.SaveChangesAsync(); 59 | } 60 | catch (DbUpdateConcurrencyException) 61 | { 62 | if (!CategoryExists(id)) 63 | { 64 | return NotFound(); 65 | } 66 | else 67 | { 68 | throw; 69 | } 70 | } 71 | 72 | return NoContent(); 73 | } 74 | 75 | // POST: api/Categories 76 | [HttpPost] 77 | public async Task> PostCategory(Category category) 78 | { 79 | _context.Category.Add(category); 80 | await _context.SaveChangesAsync(); 81 | 82 | return CreatedAtAction("GetCategory", new { id = category.Id }, category); 83 | } 84 | 85 | // DELETE: api/Categories/5 86 | [HttpDelete("{id}")] 87 | public async Task> DeleteCategory(int id) 88 | { 89 | var category = await _context.Category.FindAsync(id); 90 | if (category == null) 91 | { 92 | return NotFound(); 93 | } 94 | 95 | _context.Category.Remove(category); 96 | await _context.SaveChangesAsync(); 97 | 98 | return category; 99 | } 100 | 101 | private bool CategoryExists(int id) 102 | { 103 | return _context.Category.Any(e => e.Id == id); 104 | } 105 | } 106 | } -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/Controllers/CommentsController.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Mvc; 2 | using Microsoft.EntityFrameworkCore; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | using UdemyAngularBlogCore.API.Models; 7 | 8 | namespace UdemyAngularBlogCore.API.Controllers 9 | { 10 | [Route("api/[controller]")] 11 | [ApiController] 12 | public class CommentsController : ControllerBase 13 | { 14 | private readonly UdemyAngularBlogDBContext _context; 15 | 16 | public CommentsController(UdemyAngularBlogDBContext context) 17 | { 18 | _context = context; 19 | } 20 | 21 | // DELETE: api/Comments/ 22 | [HttpGet] 23 | public async Task>> GetComment() 24 | { 25 | return await _context.Comment.ToListAsync(); 26 | } 27 | 28 | // GET: api/Comments/5 29 | [HttpGet("{id}")] 30 | public IActionResult GetCommentList(int id) 31 | { 32 | var comments = _context.Comment.Where(a => a.ArticleId == id).ToList(); 33 | 34 | if (comments == null) 35 | { 36 | return NotFound(); 37 | } 38 | return Ok(comments); 39 | } 40 | 41 | // PUT: api/Comments/5 42 | [HttpPut("{id}")] 43 | public async Task PutComment(int id, Comment comment) 44 | { 45 | if (id != comment.Id) 46 | { 47 | return BadRequest(); 48 | } 49 | 50 | _context.Entry(comment).State = EntityState.Modified; 51 | 52 | try 53 | { 54 | await _context.SaveChangesAsync(); 55 | } 56 | catch (DbUpdateConcurrencyException) 57 | { 58 | if (!CommentExists(id)) 59 | { 60 | return NotFound(); 61 | } 62 | else 63 | { 64 | throw; 65 | } 66 | } 67 | 68 | return NoContent(); 69 | } 70 | 71 | // POST: api/Comments 72 | [HttpPost] 73 | public async Task> PostComment(Comment comment) 74 | { 75 | System.Threading.Thread.Sleep(2500); 76 | comment.PublishDate = System.DateTime.Now; 77 | 78 | _context.Comment.Add(comment); 79 | await _context.SaveChangesAsync(); 80 | 81 | return CreatedAtAction("GetComment", new { id = comment.Id }, comment); 82 | } 83 | 84 | // DELETE: api/Comments/5 85 | [HttpDelete("{id}")] 86 | public async Task> DeleteComment(int id) 87 | { 88 | var comment = await _context.Comment.FindAsync(id); 89 | if (comment == null) 90 | { 91 | return NotFound(); 92 | } 93 | 94 | _context.Comment.Remove(comment); 95 | await _context.SaveChangesAsync(); 96 | 97 | return comment; 98 | } 99 | 100 | private bool CommentExists(int id) 101 | { 102 | return _context.Comment.Any(e => e.Id == id); 103 | } 104 | } 105 | } -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/Controllers/HelperController.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Mvc; 2 | using System; 3 | using System.Net.Mail; 4 | using UdemyAngularBlogCore.API.Models; 5 | 6 | namespace UdemyAngularBlogCore.API.Controllers 7 | { 8 | [Route("api/[controller]/[action]")] 9 | [ApiController] 10 | public class HelperController : ControllerBase 11 | { 12 | [HttpPost] 13 | public IActionResult SendContactEmail(Contact contact) 14 | { 15 | System.Threading.Thread.Sleep(5000); 16 | try 17 | { 18 | MailMessage mailMessage = new MailMessage(); 19 | 20 | SmtpClient smtpClient = new SmtpClient("mail.teknohub.net"); 21 | 22 | mailMessage.From = new MailAddress("fcakiroglu@teknohub.net"); 23 | mailMessage.To.Add("f-cakiroglu@outlook.com"); 24 | 25 | mailMessage.Subject = contact.Subject; 26 | mailMessage.Body = contact.Message; 27 | mailMessage.IsBodyHtml = true; 28 | smtpClient.Port = 587; 29 | 30 | smtpClient.Credentials = new System.Net.NetworkCredential("fcakiroglu@teknohub.net", "FatihFatih31"); 31 | 32 | smtpClient.Send(mailMessage); 33 | return Ok(); 34 | } 35 | catch (Exception ex) 36 | { 37 | return BadRequest(ex.Message); 38 | } 39 | } 40 | } 41 | } -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/Controllers/ValuesController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Mvc; 6 | 7 | namespace UdemyAngularBlogCore.API.Controllers 8 | { 9 | [Route("api/[controller]")] 10 | [ApiController] 11 | public class ValuesController : ControllerBase 12 | { 13 | // GET api/values 14 | [HttpGet] 15 | public ActionResult> Get() 16 | { 17 | return new string[] { "value1", "value2" }; 18 | } 19 | 20 | // GET api/values/5 21 | [HttpGet("{id}")] 22 | public ActionResult Get(int id) 23 | { 24 | return "value"; 25 | } 26 | 27 | // POST api/values 28 | [HttpPost] 29 | public void Post([FromBody] string value) 30 | { 31 | } 32 | 33 | // PUT api/values/5 34 | [HttpPut("{id}")] 35 | public void Put(int id, [FromBody] string value) 36 | { 37 | } 38 | 39 | // DELETE api/values/5 40 | [HttpDelete("{id}")] 41 | public void Delete(int id) 42 | { 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/Models/AdminUser.cs: -------------------------------------------------------------------------------- 1 | namespace UdemyAngularBlogCore.API.Models 2 | { 3 | public class AdminUser 4 | { 5 | public string Email { get; set; } 6 | public string Password { get; set; } 7 | } 8 | } -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/Models/Article.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace UdemyAngularBlogCore.API.Models 5 | { 6 | public partial class Article 7 | { 8 | public Article() 9 | { 10 | Comment = new HashSet(); 11 | } 12 | 13 | public int Id { get; set; } 14 | public string Title { get; set; } 15 | public string ContentSummary { get; set; } 16 | public string ContentMain { get; set; } 17 | public DateTime PublishDate { get; set; } 18 | public string Picture { get; set; } 19 | public int CategoryId { get; set; } 20 | public int ViewCount { get; set; } 21 | 22 | public virtual Category Category { get; set; } 23 | public virtual ICollection Comment { get; set; } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/Models/Category.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace UdemyAngularBlogCore.API.Models 5 | { 6 | public partial class Category 7 | { 8 | public Category() 9 | { 10 | Article = new HashSet
(); 11 | } 12 | 13 | public int Id { get; set; } 14 | public string Name { get; set; } 15 | 16 | public virtual ICollection
Article { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/Models/Comment.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace UdemyAngularBlogCore.API.Models 5 | { 6 | public partial class Comment 7 | { 8 | public int Id { get; set; } 9 | public int ArticleId { get; set; } 10 | public string Name { get; set; } 11 | public string ContentMain { get; set; } 12 | public DateTime PublishDate { get; set; } 13 | 14 | public virtual Article Article { get; set; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/Models/Contact.cs: -------------------------------------------------------------------------------- 1 | namespace UdemyAngularBlogCore.API.Models 2 | { 3 | public class Contact 4 | { 5 | public string Name { get; set; } 6 | public string Email { get; set; } 7 | public string Subject { get; set; } 8 | public string Message { get; set; } 9 | } 10 | } -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/Models/UdemyAngularBlogDBContext.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore; 2 | 3 | namespace UdemyAngularBlogCore.API.Models 4 | { 5 | public partial class UdemyAngularBlogDBContext : DbContext 6 | { 7 | public UdemyAngularBlogDBContext() 8 | { 9 | } 10 | 11 | public UdemyAngularBlogDBContext(DbContextOptions options) 12 | : base(options) 13 | { 14 | } 15 | 16 | public virtual DbSet
Article { get; set; } 17 | public virtual DbSet Category { get; set; } 18 | public virtual DbSet Comment { get; set; } 19 | 20 | protected override void OnModelCreating(ModelBuilder modelBuilder) 21 | { 22 | modelBuilder.HasAnnotation("ProductVersion", "2.2.4-servicing-10062"); 23 | 24 | modelBuilder.Entity
(entity => 25 | { 26 | entity.Property(e => e.Id).HasColumnName("id"); 27 | 28 | entity.Property(e => e.CategoryId).HasColumnName("category_id"); 29 | 30 | entity.Property(e => e.ContentMain) 31 | .IsRequired() 32 | .HasColumnName("content_main"); 33 | 34 | entity.Property(e => e.ContentSummary) 35 | .IsRequired() 36 | .HasColumnName("content_summary") 37 | .HasMaxLength(500); 38 | 39 | entity.Property(e => e.Picture) 40 | .HasColumnName("picture") 41 | .HasMaxLength(300); 42 | 43 | entity.Property(e => e.PublishDate) 44 | .HasColumnName("publish_date") 45 | .HasColumnType("datetime"); 46 | 47 | entity.Property(e => e.Title) 48 | .IsRequired() 49 | .HasColumnName("title") 50 | .HasMaxLength(500); 51 | 52 | entity.Property(e => e.ViewCount).HasColumnName("viewCount"); 53 | 54 | entity.HasOne(d => d.Category) 55 | .WithMany(p => p.Article) 56 | .HasForeignKey(d => d.CategoryId) 57 | .HasConstraintName("FK_Article_Category"); 58 | }); 59 | 60 | modelBuilder.Entity(entity => 61 | { 62 | entity.Property(e => e.Id).HasColumnName("id"); 63 | 64 | entity.Property(e => e.Name) 65 | .IsRequired() 66 | .HasColumnName("name") 67 | .HasMaxLength(100); 68 | }); 69 | 70 | modelBuilder.Entity(entity => 71 | { 72 | entity.Property(e => e.Id).HasColumnName("id"); 73 | 74 | entity.Property(e => e.ArticleId).HasColumnName("article_id"); 75 | 76 | entity.Property(e => e.ContentMain) 77 | .IsRequired() 78 | .HasColumnName("content_main"); 79 | 80 | entity.Property(e => e.Name) 81 | .IsRequired() 82 | .HasColumnName("name") 83 | .HasMaxLength(100); 84 | 85 | entity.Property(e => e.PublishDate) 86 | .HasColumnName("publish_date") 87 | .HasColumnType("datetime"); 88 | 89 | entity.HasOne(d => d.Article) 90 | .WithMany(p => p.Comment) 91 | .HasForeignKey(d => d.ArticleId) 92 | .HasConstraintName("FK_Comment_Article"); 93 | }); 94 | } 95 | } 96 | } -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | using Microsoft.AspNetCore; 7 | using Microsoft.AspNetCore.Hosting; 8 | using Microsoft.Extensions.Configuration; 9 | using Microsoft.Extensions.Logging; 10 | 11 | namespace UdemyAngularBlogCore.API 12 | { 13 | public class Program 14 | { 15 | public static void Main(string[] args) 16 | { 17 | CreateWebHostBuilder(args).Build().Run(); 18 | } 19 | 20 | public static IWebHostBuilder CreateWebHostBuilder(string[] args) => 21 | WebHost.CreateDefaultBuilder(args) 22 | .UseStartup(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/launchsettings.json", 3 | "iisSettings": { 4 | "windowsAuthentication": false, 5 | "anonymousAuthentication": true, 6 | "iisExpress": { 7 | "applicationUrl": "http://localhost:50733", 8 | "sslPort": 44356 9 | } 10 | }, 11 | "profiles": { 12 | "IIS Express": { 13 | "commandName": "IISExpress", 14 | "launchBrowser": true, 15 | "launchUrl": "api/values", 16 | "environmentVariables": { 17 | "ASPNETCORE_ENVIRONMENT": "Development" 18 | } 19 | }, 20 | "UdemyAngularBlogCore.API": { 21 | "commandName": "Project", 22 | "launchBrowser": true, 23 | "launchUrl": "api/values", 24 | "applicationUrl": "https://localhost:5001;http://localhost:5000", 25 | "environmentVariables": { 26 | "ASPNETCORE_ENVIRONMENT": "Development" 27 | } 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/Responses/ArticleResponse.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UdemyAngularBlogCore.API.Responses 4 | { 5 | public class ArticleResponse 6 | { 7 | public int Id { get; set; } 8 | public string Title { get; set; } 9 | public string ContentMain { get; set; } 10 | public string ContentSummary { get; set; } 11 | 12 | public DateTime PublishDate { get; set; } 13 | public string Picture { get; set; } 14 | 15 | public int ViewCount { get; set; } 16 | 17 | public int CommentCount { get; set; } 18 | public CategoryResponse Category { get; set; } 19 | } 20 | } -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/Responses/CategoryResponse.cs: -------------------------------------------------------------------------------- 1 | namespace UdemyAngularBlogCore.API.Responses 2 | { 3 | public class CategoryResponse 4 | { 5 | public int Id { get; set; } 6 | public string Name { get; set; } 7 | } 8 | } -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/Startup.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Builder; 2 | using Microsoft.AspNetCore.Hosting; 3 | using Microsoft.AspNetCore.Mvc; 4 | using Microsoft.EntityFrameworkCore; 5 | using Microsoft.Extensions.Configuration; 6 | using Microsoft.Extensions.DependencyInjection; 7 | using UdemyAngularBlogCore.API.Models; 8 | 9 | namespace UdemyAngularBlogCore.API 10 | { 11 | public class Startup 12 | { 13 | public Startup(IConfiguration configuration) 14 | { 15 | Configuration = configuration; 16 | } 17 | 18 | public IConfiguration Configuration { get; } 19 | 20 | // This method gets called by the runtime. Use this method to add services to the container. 21 | public void ConfigureServices(IServiceCollection services) 22 | { 23 | services.AddCors(opts => 24 | { 25 | opts.AddDefaultPolicy(x => 26 | { 27 | x.AllowAnyOrigin().AllowAnyHeader().AllowAnyMethod().AllowCredentials(); 28 | }); 29 | }); 30 | 31 | services.AddDbContext(opts => 32 | { 33 | opts.UseSqlServer(Configuration["ConnectionStrings:DefaultSqlConnectionString"]); 34 | }); 35 | 36 | services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2); 37 | } 38 | 39 | // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. 40 | public void Configure(IApplicationBuilder app, IHostingEnvironment env) 41 | { 42 | if (env.IsDevelopment()) 43 | { 44 | app.UseDeveloperExceptionPage(); 45 | } 46 | else 47 | { 48 | // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. 49 | app.UseHsts(); 50 | } 51 | 52 | app.UseCors(); 53 | app.UseStaticFiles(); 54 | app.UseHttpsRedirection(); 55 | app.UseMvc(); 56 | } 57 | } 58 | } -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/UdemyAngularBlogCore.API.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.2 5 | InProcess 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Debug", 5 | "System": "Information", 6 | "Microsoft": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "ConnectionStrings": { 3 | "DefaultSqlConnectionString": "Data Source=FATIH-EXCALIBUR\\SQLEXPRESS;Initial Catalog=UdemyAngularBlogDB;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False" 4 | }, 5 | 6 | "Logging": { 7 | "LogLevel": { 8 | "Default": "Warning" 9 | } 10 | }, 11 | "AllowedHosts": "*" 12 | } -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/wwwroot/articlePictures/147c941f-c2c1-4f30-a2f3-9f7e2cb37081.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fcakiroglu16/UdemyAngularBlogCoreAPI/1be88e114a71e05eba7e45b84a769c740544bd18/UdemyAngularBlogCore.API/wwwroot/articlePictures/147c941f-c2c1-4f30-a2f3-9f7e2cb37081.jpg -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/wwwroot/articlePictures/53ab1b06-b619-4f9b-849b-51c4ffb37bcc.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fcakiroglu16/UdemyAngularBlogCoreAPI/1be88e114a71e05eba7e45b84a769c740544bd18/UdemyAngularBlogCore.API/wwwroot/articlePictures/53ab1b06-b619-4f9b-849b-51c4ffb37bcc.jpg -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/wwwroot/articlePictures/70123ba8-73b0-44b5-8bd9-7cb56cf0b589.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fcakiroglu16/UdemyAngularBlogCoreAPI/1be88e114a71e05eba7e45b84a769c740544bd18/UdemyAngularBlogCore.API/wwwroot/articlePictures/70123ba8-73b0-44b5-8bd9-7cb56cf0b589.png -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/wwwroot/articlePictures/773d8d02-a293-4a0b-83d8-cb68f7fe6a96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fcakiroglu16/UdemyAngularBlogCoreAPI/1be88e114a71e05eba7e45b84a769c740544bd18/UdemyAngularBlogCore.API/wwwroot/articlePictures/773d8d02-a293-4a0b-83d8-cb68f7fe6a96.png -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/wwwroot/articlePictures/98f5d9be-0f75-4997-b863-f78c60317380.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fcakiroglu16/UdemyAngularBlogCoreAPI/1be88e114a71e05eba7e45b84a769c740544bd18/UdemyAngularBlogCore.API/wwwroot/articlePictures/98f5d9be-0f75-4997-b863-f78c60317380.jpg -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/wwwroot/articlePictures/a2bc7073-75c4-4b2c-a9de-4b08a5148a08.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fcakiroglu16/UdemyAngularBlogCoreAPI/1be88e114a71e05eba7e45b84a769c740544bd18/UdemyAngularBlogCore.API/wwwroot/articlePictures/a2bc7073-75c4-4b2c-a9de-4b08a5148a08.jpg -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/wwwroot/articlePictures/b9805386-d4ec-4877-b3fa-d89b6efbc467.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fcakiroglu16/UdemyAngularBlogCoreAPI/1be88e114a71e05eba7e45b84a769c740544bd18/UdemyAngularBlogCore.API/wwwroot/articlePictures/b9805386-d4ec-4877-b3fa-d89b6efbc467.png -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/wwwroot/articlePictures/fc8e1cc7-8301-4aaf-bc7f-dcfa7fb62015.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fcakiroglu16/UdemyAngularBlogCoreAPI/1be88e114a71e05eba7e45b84a769c740544bd18/UdemyAngularBlogCore.API/wwwroot/articlePictures/fc8e1cc7-8301-4aaf-bc7f-dcfa7fb62015.jpg -------------------------------------------------------------------------------- /UdemyAngularBlogCore.API/wwwroot/articlePictures/fe9cdc71-3473-4e97-aec7-578a012fffa3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fcakiroglu16/UdemyAngularBlogCoreAPI/1be88e114a71e05eba7e45b84a769c740544bd18/UdemyAngularBlogCore.API/wwwroot/articlePictures/fe9cdc71-3473-4e97-aec7-578a012fffa3.png -------------------------------------------------------------------------------- /desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | IconResource=C:\WINDOWS\System32\SHELL32.dll,27 3 | [ViewState] 4 | Mode= 5 | Vid= 6 | FolderType=Generic 7 | --------------------------------------------------------------------------------