{"id":22388003,"url":"https://github.com/ekremgunes/portfolio-website","last_synced_at":"2025-07-31T06:32:35.260Z","repository":{"id":65761711,"uuid":"581852840","full_name":"ekremgunes/Portfolio-WebSite","owner":"ekremgunes","description":"Graphic designer Portfolio Project with asp.net core mvc,ntier,web","archived":false,"fork":false,"pushed_at":"2024-08-10T20:52:56.000Z","size":62109,"stargazers_count":14,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-10T21:53:46.372Z","etag":null,"topics":["ajax","asp-net-core","automapper","dotnet6","error-handling","fluentvalidation","identity","mvc-architecture","n-tier-architecture","ntier-architecture"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ekremgunes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-24T15:36:31.000Z","updated_at":"2024-08-10T20:53:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"10def7e5-2e0a-49d8-9103-9243adae3a13","html_url":"https://github.com/ekremgunes/Portfolio-WebSite","commit_stats":null,"previous_names":["ekremgunes/portfolio-website"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekremgunes%2FPortfolio-WebSite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekremgunes%2FPortfolio-WebSite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekremgunes%2FPortfolio-WebSite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekremgunes%2FPortfolio-WebSite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ekremgunes","download_url":"https://codeload.github.com/ekremgunes/Portfolio-WebSite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228219705,"owners_count":17887058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ajax","asp-net-core","automapper","dotnet6","error-handling","fluentvalidation","identity","mvc-architecture","n-tier-architecture","ntier-architecture"],"created_at":"2024-12-05T02:12:05.527Z","updated_at":"2024-12-05T02:12:06.235Z","avatar_url":"https://github.com/ekremgunes.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n                                                  Portfolio Project\n![](https://github.com/ekremgunes/PortfolioProject/blob/master/panel_111.gif)\n![](https://github.com/ekremgunes/PortfolioProject/blob/master/panel_222.gif)\n```\nI used these technologies dotnet6 , MVC -\u003e ViewComponents ,\nAJAX ,\nN-Tier Architecture ,\nEntityFramework (MSSQL) ,\nIdentity ,\nAutoMapper ,\nI tried SOLİD,DRY and Yagni principles ,\nError Handling Manually\n```\n\u003cbr\u003e\n\n\n\u003e FluentAPI : \n\n```c#\n    public class ImageConfigurations : IEntityTypeConfiguration\u003cImage\u003e\n    {\n        public void Configure(EntityTypeBuilder\u003cImage\u003e builder)\n        {\n            builder.HasKey(x =\u003e x.id);\n            builder.Property(x =\u003e x.imgPath).IsRequired();\n            builder.HasOne(x =\u003e x.contentDetail).WithMany(x =\u003e x.images).HasForeignKey(x =\u003e x.contentDetailId);\n        }\n    }\n```\n\u003e Clean code examples:\n\n```c#\n  public bool ContentIsValid(ContentCreateDto dto) =\u003e _createContentValidator.Validate(dto).IsValid;\n\n  public bool ContentUpdateIsValid(ContentUpdateDto dto) =\u003e _updateContentValidator.Validate(dto).IsValid;\n```\n\n\u003e Unit Of Work : \n\n```c#\n    public class Uow : IUow \n    {\n        private readonly PortfolioContext _context;\n\n        public Uow(PortfolioContext context)\n        {\n            _context = context;\n        }\n\n        public IRepository\u003cT\u003e GetRepository\u003cT\u003e() where T : BaseEntity\n        {\n            return new Repository\u003cT\u003e(_context);\n        }\n\n        public async Task SaveChangesAsync()\n        {\n            await _context.SaveChangesAsync();\n        }\n    }\n```\n\u003e Fluent Validation :\n```c#\n    public class ServiceUpdateDtoValidator : AbstractValidator\u003cServiceUpdateDto\u003e\n    {\n        public ServiceUpdateDtoValidator()\n        {\n            RuleFor(x =\u003e x.id).NotEmpty().WithMessage(\"data id not found\");\n            RuleFor(x =\u003e x.serviceName).NotEmpty().WithMessage(\"Service name can't be empty\");\n            RuleFor(x =\u003e x.rank).LessThan((short)101).WithMessage(\"Rank max value is 100\");\n            RuleFor(x =\u003e x.rank).GreaterThan((short)0).WithMessage(\"Rank min value is 1\");\n        }\n    }\n```\n\nYou can star and look when you forget these :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekremgunes%2Fportfolio-website","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fekremgunes%2Fportfolio-website","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekremgunes%2Fportfolio-website/lists"}