diff --git a/lmltfy/Global.asax.cs b/lmltfy/Global.asax.cs index c567a73..fd3f151 100644 --- a/lmltfy/Global.asax.cs +++ b/lmltfy/Global.asax.cs @@ -25,9 +25,11 @@ namespace lmltfy //Access the db to JIT the EF dll, and generate a URL to JIT parts of our DLL (improve page loads on subsequent first time app starts) #if DEBUG #else - Console.WriteLine(azuredb.GetModelByKey("tdszzxr3").Brand); + //MvcHandler.DisableMvcResponseHeader = true; + // Console.WriteLine(azuredb.GetModelByKey("tdszzxr3").Brand); #endif } + } } diff --git a/lmltfy/Models/SearchModel.cs b/lmltfy/Models/SearchModel.cs index 7e55dea..7a56db2 100644 --- a/lmltfy/Models/SearchModel.cs +++ b/lmltfy/Models/SearchModel.cs @@ -12,8 +12,9 @@ namespace lmltfy.Models PartitionKey = ConsPartitionKey; } [AllowHtml] - [StringLength(2000, ErrorMessage = "No more than 2000 characters", MinimumLength = 1)] + [StringLength(2000, ErrorMessage = "No more than 2000 characters", MinimumLength = 1), Required(AllowEmptyStrings = false, ErrorMessage = "Search must not be empty")] public string Search { get; set; } + string url; [Key]