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
Insert.IntoTable("Movie") | |
.Row(new | |
{ | |
Title = "The Matrix", | |
Description = "A computer hacker learns from mysterious rebels about the true nature of his reality and his role in the war against its controllers.", | |
Storyline = "Thomas A. Anderson is a man living two lives. By day he is an average computer programmer and by night a hacker known as Neo. Neo has always questioned his reality, but the truth is far beyond his imagination. Neo finds himself targeted by the police when he is contacted by Morpheus, a legendary computer hacker branded a terrorist by the government. Morpheus awakens Neo to the real world, a ravaged wasteland where most of humanity have been captured by a race of machines that live off of the humans' body heat and electrochemical energy and who imprison their minds within an artificial reality known as the Matrix. As a rebel against the machines, Neo must return to the Matrix and confront the agents: super-powerful computer programs devoted to snuffing out Neo |
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 static void AppendSection(this IDictionary<string, RenderAsyncDelegate> args, string key, Func<dynamic, dynamic> text) | |
{ | |
if (!args.ContainsKey(key)) | |
{ | |
args.Add(key, (async textWriter => | |
{ | |
await text("").WriteAction(textWriter); | |
})); | |
} | |
else { |
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 ServiceHandler { | |
public ServiceHandler() { | |
} | |
public static String POST(String url, List<String> params){ | |
InputStream inputStream = null; | |
String result = "";p | |
try { |
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
using Serenity.Data; | |
using System; | |
using System.Data.SqlClient; | |
namespace Serenity.Services | |
{ | |
public class DeleteRequestHandlerFK<TRow> : DeleteRequestHandler<TRow> | |
where TRow: Row, IIdRow, new() | |
{ | |
protected override void ExecuteDelete() |
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
@section ContentHeader { | |
<h1>@LocalText.Get("Navigation.Dashboard")<small>@Html.Raw(Texts.Site.Dashboard.ContentDescription)</small></h1> | |
<script src="https://maps.googleapis.com/maps/api/js"></script> | |
} | |
<div id="MapContainer" style="width: 700px; height: 400px;"> | |
</div> | |
<script type="text/javascript"> | |
$(function() { |