This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"profiles": [ | |
{ | |
// Make changes here to the Visual Studio Terminal profile | |
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6102}", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Html.TextBoxFor(m => m[i].LastName, new { @class="form-control" }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Person | |
{ | |
public int id { get; set; } | |
[Display(Name = "First Name")] | |
public string FirstName { get; set; } | |
[Display(Name = "Last Name")] | |
public string LastName { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@model List<ModelListBinding.Models.Person> | |
<form asp-action="Save" method="post" role="form"> | |
<table> | |
<thead> | |
<tr> | |
<th><label asp-for="@Model[0].FirstName" class="control-label"></label></th> | |
<th><label asp-for="@Model[0].LastName" class="control-label"></label></th> | |
<th><label asp-for="@Model[0].Birthday" class="control-label"></label></th> | |
<th><label asp-for="@Model[0].IsActive" class="control-label"></label></th> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[HttpPost] | |
public IActionResult Save(List<Person> model) | |
{ | |
//Manipular datos | |
return View(model); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public IActionResult Index() | |
{ | |
List<Person> model = new List<Person>() | |
{ | |
new Person() { id = 1, FirstName = "Jorge", LastName = "Levy", Birthday = new DateTime(1977, 3, 10), IsActive = true }, | |
new Person() { id = 1, FirstName = "Maria", LastName = "Gutierrez", Birthday = new DateTime(1977, 1, 1), IsActive = true }, | |
new Person() { id = 1, FirstName = "Samanta", LastName = "Lopez", Birthday = new DateTime(1980, 1, 1), IsActive = false }, | |
new Person() { id = 1, FirstName = "Pedro", LastName = "Paramo", Birthday = new DateTime(1998, 12, 24), IsActive = false }, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HomeController : BaseController | |
{ | |
public IActionResult Index() | |
{ | |
return View("Hola Mundo!!!"); | |
} | |
} |