Ziazios Konstantinos- Twitter:@ziazios
wp:http://ziaziosk.wordpress.com/
Η Καμάρα είναι κτίσμα της εποχής της Ρωμαϊκής «Τετραρχίας» (αρχές 4ου μ.Χ. αιώνα) και αποτελεί το ένα σκέλος (δυτικό) μίας στεγασμένης στοάς, που σχηματιζόταν από αψίδες και τόξα. Κατασκευάστηκε για να τιμηθεί ο Ρωμαίος ΑυτοκράτοραςΓαλέριος, όταν αυτός επέστρεψε νικητής στην πόλη (περί το 306 μ.Χ.)
Model–view–controller (MVC) is a software architectural pattern for implementing user interfaces.
It divides a given software application into three interconnected parts, so as to separate internal representations of information from the ways that information is presented to or accepted from the user.
Introduced at Xerox Parc in the 1970s
- src:wikipedia
What it looks like!
public class Model1
{
[Required]
public string Field1 {get;set;}
}
.....
[Authorize]
public class HomeController : Controller
{
public ActionResult Index(string id)
{
Model1 model1 = GetModel1();
....
return View(model1);
}
}
......
@model Models.Model1
@{
ViewBag.Title = "MyView";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="row">
@Model.Field1
</div>
...
Show me the code!
Visual Studio
Src: http://www.asp.net/mvc/overview/getting-started/aspnet-mvc-facebook-birthday-app