Built something? We create video reels & spotlights for GitHub projects.Promote your project →
Catalog / TonyHenry21 / Estado
Public GitHub Catalog Discovered Sep 26, 2026

TonyHenry21 / Estado

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using LadoAnimal.Models; namespace LadoAnimal.Controllers { public class EstadoController : Controller { // // GET: /Estado/ public ActionResult Index() { var estado = Estado.FindAll(); return View (estado); } public ActionResult Create () { var estado = new Estado(); return View(estado); } [HttpPost] public ActionResult Create(Estado estado) { Estado.Create(estado); return RedirectToAction("Index"); } public ActionResult Delete(int id) { Estado estado = Estado.Find(id); estado.Delete(); return RedirectToAction("Index"); } public ActionResult Details(int id) { Estado estado = Estado.Find(id); return View(estado); } public ActionResult Edit(int id) { Estado estado = Estado.Find(id); return View(estado); } } }

View repository on GitHub ↗ View creator profile Browse directory

About this discovery

This repository is cataloged as part of our automated global GitHub synchronization. Full telemetry, velocity snapshots, and code summaries are scheduled for continuous enrichment.

#6250745GitHub System ID
TonyHenry21Organization / User
PublicVisibility
ActiveCatalog Status

More from TonyHenry21

↗

TonyHenry21/Projeto-estado

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using LadoAnimal.Models; namespace LadoAnimal.Controllers { public class EstadoController : Controller { // // GET: /Estado/ public ActionResult Index() { var estado = Estado.FindAll(); return View (estado); } public ActionResult Create () { var estado = new Estado(); return View(estado); } [HttpPost] public ActionResult Create(Estado estado) { Estado.Create(estado); return RedirectToAction("Index"); } public ActionResult Delete(int id) { Estado estado = Estado.Find(id); estado.Delete(); return RedirectToAction("Index"); } public ActionResult Details(int id) { Estado estado = Estado.Find(id); return View(estado); } public ActionResult Edit(int id) { Estado estado = Estado.Find(id); return View(estado); } } } using LadoAnimal.Framework.ActiveRecord; using LadoAnimal.Framework.ActiveRecord.Sql; using LadoAnimal.Framework.DataAccess; namespace LadoAnimal.Models { public class Estado:ActiveRecordBase<Estado> { public int Id { get; set; } public string Nome { get; set; } } } @model IEnumerable<LadoAnimal.Models.Estado> @{ ViewBag.Title = "Index"; Layout = "~/Views/Shared/_Layout.cshtml"; } <h2>Index</h2> <p> @Html.ActionLink("Inserir Novo", "Create") </p> <table> <tr> <th>nome</th> </tr> @foreach (var item in Model) { <tr> <td>@item.Nome</td> <td> @Html.ActionLink("Editar", "Edit", new { id = item.Id })| @Html.ActionLink("detalhado", "Details", new { id = item.Id }) | @Html.ActionLink("Deletar", "Delete", new { id = item.Id }) </td> </tr> } </table> @model LadoAnimal.Models.Estado @{ ViewBag.Title = "Edit"; Layout = "~/Views/Shared/_Layout.cshtml"; } <h2>Edit</h2> <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script> @using (Html.BeginForm()) { @Html.ValidationSummary(true) <fieldset> <legend>Estado</legend> @Html.HiddenFor(model => model.Id) <div class="editor-label"> @Html.LabelFor(model => model.Nome) </div> <div class="editor-field"> @Html.EditorFor(model => model.Nome) @Html.ValidationMessageFor(model => model.Nome) </div> <p> <input type="submit" value="Save" /> </p> </fieldset> } <div> @Html.ActionLink("Back to List", "Index") </div>

Discovered
FOR MAINTAINERS

Built something? Put it in front of millions of developers.

We make a short reel about your project and post it across YouTube, Instagram, Threads, and X. Send a link, we do the rest.