limit search char

This commit is contained in:
Tommy Parnell
2015-08-09 15:29:24 -04:00
parent 61ebef5684
commit 5220ebc6db
2 changed files with 5 additions and 2 deletions

View File

@@ -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) //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 #if DEBUG
#else #else
Console.WriteLine(azuredb.GetModelByKey("tdszzxr3").Brand); //MvcHandler.DisableMvcResponseHeader = true;
// Console.WriteLine(azuredb.GetModelByKey("tdszzxr3").Brand);
#endif #endif
} }
} }
} }

View File

@@ -12,8 +12,9 @@ namespace lmltfy.Models
PartitionKey = ConsPartitionKey; PartitionKey = ConsPartitionKey;
} }
[AllowHtml] [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; } public string Search { get; set; }
string url; string url;
[Key] [Key]