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
[POST("/api/requisition/create")] | |
[ValidModel] | |
public ActionResult Create(RequisitionViewModel model) | |
{ | |
var param = new { | |
JobSite_Id = ExecutionContext.SelectedJobSite.JobSite_Id, | |
Description = model.description, | |
Request_Date = DateTime.Parse(model.requisitionDate), | |
Estimator = model.estimator, | |
Created_By_Employee_Id = ExecutionContext.LogonUser.Employee_Id |
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
<configuration> | |
<system.web> | |
<compilation debug="true" targetFramework="4.0" /> | |
<httpHandlers> | |
<add verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*" /> | |
</httpHandlers> | |
</system.web> | |
<system.webServer> | |
<validation validateIntegratedModeConfiguration="false" /> | |
<handlers> |
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 ActionResult Index() | |
{ | |
Session["First_Name"] = "Alfred"; | |
var name = System.Web.HttpContext.Current.Session["First_Name"]; | |
dynamic model = new ExpandoObject(); | |
model.First_Name = Session["First_Name"]; | |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
For more information on how to configure your ASP.NET application, please visit | |
http://go.microsoft.com/fwlink/?LinkId=152368 | |
--> | |
<configuration> | |
<connectionStrings> | |
<add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" /> | |
</connectionStrings> | |
<appSettings> |