{"id":19063560,"url":"https://github.com/lurumad/core-flash","last_synced_at":"2025-10-06T17:48:07.255Z","repository":{"id":144130095,"uuid":"92753117","full_name":"lurumad/core-flash","owner":"lurumad","description":"Minimalist flash message system for ASP.NET MVC Core.","archived":false,"fork":false,"pushed_at":"2022-12-01T11:38:27.000Z","size":1835,"stargazers_count":24,"open_issues_count":3,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-18T14:34:20.553Z","etag":null,"topics":["alerts","asp-net-core","bootstrap","flash","mvc"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lurumad.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":"2017-05-29T15:39:55.000Z","updated_at":"2024-05-28T11:29:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b90aceb-132d-479f-9652-989d1dba6824","html_url":"https://github.com/lurumad/core-flash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lurumad%2Fcore-flash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lurumad%2Fcore-flash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lurumad%2Fcore-flash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lurumad%2Fcore-flash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lurumad","download_url":"https://codeload.github.com/lurumad/core-flash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250847215,"owners_count":21497141,"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":["alerts","asp-net-core","bootstrap","flash","mvc"],"created_at":"2024-11-09T00:37:29.484Z","updated_at":"2025-10-06T17:48:02.200Z","avatar_url":"https://github.com/lurumad.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Core.Flash [![NuGet](https://img.shields.io/nuget/v/Core.Flash.svg)](https://www.nuget.org/packages/Core.Flash/)\n\nMinimalistic flash message system for ASP.NET MVC Core to provide contextual feedback messages between actions based on [Bootstrap Alerts](https://getbootstrap.com/docs/4.0/components/alerts/)\n\n### Install Core.Flash\n\nYou should install [Core.Flash](https://www.nuget.org/packages/Core.Flash/):\n\n    Install-Package Core.Flash\n    \nThis command from Package Manager Console will download and install Core.Flash and all required dependencies.\n\n### Meet Core.Flash\n\nRegister **Core.Flash** services in your **Startup** class\n\n```csharp\npublic void ConfigureServices(IServiceCollection services)\n{\n    services\n      .AddFlashes()\n      .AddMvc();\n}\n```\nOnce you have been register **Core.Flash** services, you can inject the **IFlasher** interface in your Controllers:\n\n```csharp\npublic HomeController(IFlasher f)\n{\n    this.f = f;\n}\n```\nAnd call **Flash** method passing a type and the message:\n\n```csharp\npublic IActionResult YourAction()\n{\n    f.Flash(Types.Success, \"Flash message system for ASP.NET MVC Core\", dismissable: true);\n    f.Flash(Types.Danger, \"Flash message system for ASP.NET MVC Core\", dismissable: false);\n    return RedirectToAction(\"AnotherAction\");\n}\n```\nAdd **Core.Flash TagHelper** to your **_ViewImports.cs**\n\n```csharp\n@using Core.Flash.Web\n@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers\n@addTagHelper *, Core.Flash\n```\nAdd the TagHelper to your **_Layout.cs**\n\n```html\n\u003cdiv class=\"container body-content\"\u003e\n    \u003cdiv flashes\u003e\u003c/div\u003e\n    @RenderBody()\n    \u003chr /\u003e\n    \u003cfooter\u003e\n        \u003cp\u003e\u0026copy; 2017\u003c/p\u003e\n    \u003c/footer\u003e\n\u003c/div\u003e\n```\n\n**Core.Flash** uses [Bootstrap Alerts](https://v4-alpha.getbootstrap.com/components/alerts/).\n\n![Sample](https://github.com/lurumad/core-flash/blob/master/assets/flash.gif)\n\n_Copyright \u0026copy; 2017 Lurumad Contributors\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flurumad%2Fcore-flash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flurumad%2Fcore-flash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flurumad%2Fcore-flash/lists"}