├── Bloggie.Web ├── Views │ ├── _ViewStart.cshtml │ ├── _ViewImports.cshtml │ ├── Account │ │ ├── AccessDenied.cshtml │ │ ├── Login.cshtml │ │ └── Register.cshtml │ ├── Home │ │ ├── Privacy.cshtml │ │ └── Index.cshtml │ ├── Shared │ │ ├── _ValidationScriptsPartial.cshtml │ │ ├── Error.cshtml │ │ ├── _Layout.cshtml.css │ │ └── _Layout.cshtml │ ├── AdminTags │ │ ├── Add.cshtml │ │ ├── Edit.cshtml │ │ └── List.cshtml │ ├── AdminBlogPosts │ │ ├── List.cshtml │ │ ├── Add.cshtml │ │ └── Edit.cshtml │ ├── AdminUsers │ │ └── List.cshtml │ └── Blogs │ │ └── Index.cshtml ├── wwwroot │ ├── favicon.ico │ ├── js │ │ └── site.js │ ├── css │ │ └── site.css │ └── lib │ │ ├── jquery │ │ └── LICENSE.txt │ │ ├── jquery-validation │ │ └── LICENSE.md │ │ ├── bootstrap │ │ ├── LICENSE │ │ └── dist │ │ │ └── css │ │ │ ├── bootstrap-reboot.min.css │ │ │ ├── bootstrap-reboot.rtl.min.css │ │ │ ├── bootstrap-reboot.rtl.css │ │ │ └── bootstrap-reboot.css │ │ └── jquery-validation-unobtrusive │ │ ├── LICENSE.txt │ │ └── jquery.validate.unobtrusive.min.js ├── appsettings.Development.json ├── Repositories │ ├── IImageRespository.cs │ ├── IUserRepository.cs │ ├── IBlogPostCommentRepository.cs │ ├── IBlogPostLikeRepository.cs │ ├── IBlogPostRepository.cs │ ├── ITagRepository.cs │ ├── UserRepository.cs │ ├── BlogPostCommentRepository.cs │ ├── BlogPostLikeRepository.cs │ ├── CloudinaryImageRepository.cs │ ├── BlogPostRepository.cs │ └── TagRepository.cs ├── Models │ ├── ViewModels │ │ ├── AddLikeRequest.cs │ │ ├── User.cs │ │ ├── EditTagRequest.cs │ │ ├── BlogComment.cs │ │ ├── HomeViewModel.cs │ │ ├── AddTagRequest.cs │ │ ├── UserViewModel.cs │ │ ├── LoginViewModel.cs │ │ ├── RegisterViewModel.cs │ │ ├── AddBlogPostRequest.cs │ │ ├── EditBlogPostRequest.cs │ │ └── BlogDetailsViewModel.cs │ ├── ErrorViewModel.cs │ └── Domain │ │ ├── BlogPostLike.cs │ │ ├── Tag.cs │ │ ├── BlogPostComment.cs │ │ └── BlogPost.cs ├── Data │ ├── BloggieDbContext.cs │ └── AuthDbContext.cs ├── appsettings.json ├── Bloggie.Web.csproj ├── Controllers │ ├── ImagesController.cs │ ├── BlogPostLikeController.cs │ ├── HomeController.cs │ ├── AdminUsersController.cs │ ├── AccountController.cs │ ├── BlogsController.cs │ ├── AdminTagsController.cs │ └── AdminBlogPostsController.cs ├── Properties │ └── launchSettings.json ├── Migrations │ ├── 20230305212914_Adding like functionality.cs │ ├── 20230306005821_adding comments.cs │ ├── 20230216015207_Initial Migration.cs │ ├── 20230216015207_Initial Migration.Designer.cs │ ├── 20230305212914_Adding like functionality.Designer.cs │ ├── BloggieDbContextModelSnapshot.cs │ ├── 20230306005821_adding comments.Designer.cs │ └── AuthDb │ │ ├── 20230227010526_Creating Auth Db.cs │ │ └── AuthDbContextModelSnapshot.cs └── Program.cs ├── Bloggie.sln ├── .gitattributes └── .gitignore /Bloggie.Web/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /Bloggie.Web/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sameer8saini/BloggieMVC/HEAD/Bloggie.Web/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Bloggie.Web/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using Bloggie.Web 2 | @using Bloggie.Web.Models 3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 4 | -------------------------------------------------------------------------------- /Bloggie.Web/Views/Account/AccessDenied.cshtml: -------------------------------------------------------------------------------- 1 | 2 | @{ 3 | } 4 | 5 | 6 |
Use this page to detail your site's privacy policy.
7 | -------------------------------------------------------------------------------- /Bloggie.Web/Repositories/IImageRespository.cs: -------------------------------------------------------------------------------- 1 | namespace Bloggie.Web.Repositories 2 | { 3 | public interface IImageRespository 4 | { 5 | Task
12 | Request ID: @Model.RequestId
13 |
18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |
20 |21 | The Development environment shouldn't be enabled for deployed applications. 22 | It can result in displaying sensitive information from exceptions to end users. 23 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 24 | and restarting the app. 25 |
26 | -------------------------------------------------------------------------------- /Bloggie.Web/Models/ViewModels/BlogDetailsViewModel.cs: -------------------------------------------------------------------------------- 1 | using Bloggie.Web.Models.Domain; 2 | 3 | namespace Bloggie.Web.Models.ViewModels 4 | { 5 | public class BlogDetailsViewModel 6 | { 7 | public Guid Id { get; set; } 8 | public string Heading { get; set; } 9 | public string PageTitle { get; set; } 10 | public string Content { get; set; } 11 | public string ShortDescription { get; set; } 12 | public string FeaturedImageUrl { get; set; } 13 | public string UrlHandle { get; set; } 14 | public DateTime PublishedDate { get; set; } 15 | public string Author { get; set; } 16 | public bool Visible { get; set; } 17 | public ICollectionTag not found!
53 | } 54 || Id | 20 |Heading | 21 |Tags | 22 |23 | |
| @blogPost.Id | 30 |@blogPost.Heading | 31 |
32 |
33 | @foreach (var tag in blogPost.Tags)
34 | {
35 | @tag.Name
36 | }
37 |
38 | |
39 | 40 | 44 | Edit 45 | 46 | | 47 |
No Blog Posts Found!
55 | } 56 | 57 |15 | Bloggie is the gome to coding blogs covering a vast range of 16 | topics like HTML, CSS, Javascript, ASP.NET, C#, Angular etc. 17 | Want to read the latest dev articles? Join the bloggie app and 18 | get weekly blogs in your email. 19 |
20 |
26 |
62 | Author: @blogPost.Author
63 |
64 | Published Date: @blogPost.PublishedDate.ToShortDateString()
65 |
68 | @foreach (var tag in blogPost.Tags) 69 | { 70 | @tag.Name 71 | } 72 |
73 | 74 |@blogPost.ShortDescription
75 | 76 | Read More 82 || Id | 29 |Username | 30 |32 | | |
|---|---|---|---|
| @user.Id | 39 |@user.Username | 40 |@user.EmailAddress | 41 |42 | 48 | | 49 |
No users found!
57 | } 58 | 59 | 60 | 61 |No blog post found!
109 | 110 | } 111 | 112 | 113 |Blog post not found!
105 | } 106 || Id | 37 |38 | Name 39 | 40 | 41 | 47 | 48 | 49 | 50 | 51 | 57 | 58 | 59 | 60 | 61 | 62 | | 63 |64 | Display Name 65 | 66 | 67 | 73 | 74 | 75 | 76 | 77 | 83 | 84 | 85 | 86 | 87 | | 88 |89 | |
|---|---|---|---|
| @tag.Id | 96 |@tag.Name | 97 |@tag.DisplayName | 98 |99 | Edit 102 | | 103 |
No tags found!
156 | } 157 |