limit search char
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user