{"id":24482193,"url":"https://github.com/a-hemeda/web-application-mvc","last_synced_at":"2026-02-13T07:37:21.111Z","repository":{"id":271745272,"uuid":"914442355","full_name":"A-Hemeda/Web-Application-MVC","owner":"A-Hemeda","description":"Web App MVC","archived":false,"fork":false,"pushed_at":"2025-01-09T22:45:22.000Z","size":110,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T14:13:53.036Z","etag":null,"topics":["asp-net-core","csharp","dotnet","html","mvc","web-application"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/A-Hemeda.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-01-09T15:53:19.000Z","updated_at":"2025-02-24T22:11:30.000Z","dependencies_parsed_at":"2025-01-09T16:57:07.354Z","dependency_job_id":"b9518bdd-af46-4916-945a-30069fe896fe","html_url":"https://github.com/A-Hemeda/Web-Application-MVC","commit_stats":null,"previous_names":["a-hemeda/web-application-mvc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/A-Hemeda/Web-Application-MVC","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A-Hemeda%2FWeb-Application-MVC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A-Hemeda%2FWeb-Application-MVC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A-Hemeda%2FWeb-Application-MVC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A-Hemeda%2FWeb-Application-MVC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/A-Hemeda","download_url":"https://codeload.github.com/A-Hemeda/Web-Application-MVC/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A-Hemeda%2FWeb-Application-MVC/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29398768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["asp-net-core","csharp","dotnet","html","mvc","web-application"],"created_at":"2025-01-21T12:13:04.580Z","updated_at":"2026-02-13T07:37:21.076Z","avatar_url":"https://github.com/A-Hemeda.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web-Application-MVC\nA **.NET Web Application MVC (Model-View-Controller)** framework is a design pattern used to develop web applications with a clear separation of concerns. It is widely supported in the ASP.NET ecosystem.\n\n### Key Concepts\n\n#### Model\n- Represents the application's data and business logic.\n- Handles data retrieval, manipulation, and validation.\n- Examples: Entity Framework models, database entities, or business logic classes.\n\n#### View\n- Displays data to the user and collects input.\n- Typically uses Razor syntax in ASP.NET MVC to embed C# logic in HTML.\n- Examples: Razor pages, HTML templates.\n\n#### Controller\n- Acts as an intermediary between the Model and the View.\n- Handles user requests, interacts with the Model, and returns appropriate responses to the View.\n- Examples: C# classes inheriting from `Controller`.\n\n### Features\n- **Separation of Concerns:** Code for data, presentation, and control is organized into distinct components.\n- **Testability:** Easier unit testing due to decoupled components.\n- **Razor Syntax:** Simplifies integration of C# logic with HTML.\n- **Routing:** Clean URLs with customizable routing patterns.\n- **Scalability:** Suitable for large applications due to modularity.\n\n### Example Workflow\n1. User requests a URL (e.g., `/Products/Details/1`).\n2. **Routing:** Matches URL to a specific action method in a controller (e.g., `Details(int id)` in `ProductsController`).\n3. **Controller:** Fetches data from the Model (e.g., a database query for product details).\n4. **Model:** Returns the data to the Controller.\n5. **Controller:** Passes the data to a View.\n6. **View:** Renders the response (e.g., product details page) to the user.\n\n### Example Code\n**Model**  \n```csharp\npublic class Product\n{\n    public int Id { get; set; }\n    public string Name { get; set; }\n    public decimal Price { get; set; }\n}\n```\n\n**Controller**  \n```csharp\npublic class ProductsController : Controller\n{\n    public IActionResult Details(int id)\n    {\n        var product = new Product { Id = id, Name = \"Sample Product\", Price = 19.99m };\n        return View(product);\n    }\n}\n```\n\n**View (Details.cshtml)**  \n```html\n@model Product\n\n\u003ch1\u003e@Model.Name\u003c/h1\u003e\n\u003cp\u003ePrice: $@Model.Price\u003c/p\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-hemeda%2Fweb-application-mvc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa-hemeda%2Fweb-application-mvc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-hemeda%2Fweb-application-mvc/lists"}