This commit is contained in:
@@ -76,27 +76,7 @@ namespace AyaNova.Api.Controllers
|
||||
if (!ModelState.IsValid)
|
||||
return BadRequest(new ApiErrorResponse(ModelState));
|
||||
|
||||
//Here need to handle scenario of badly formed query so user knows they did it wrong and doesn't just assume it's not there
|
||||
/*
|
||||
string TagSpecificQuery=string.Empty;
|
||||
|
||||
//determine if this is a tag query
|
||||
if(HasAutoCompleteQuery){
|
||||
if(autoCompleteQuery.Contains(" ")){
|
||||
//split the query on space
|
||||
var querySegments=autoCompleteQuery.Split(' ');
|
||||
//users may type several spaces in a regular query, so ignore that and only use the first two segments
|
||||
if(querySegments[0].Contains("..")){
|
||||
TagSpecificQuery=querySegments[0].Replace("..","");
|
||||
//the second string is considered the
|
||||
autoCompleteQuery=querySegments[1];
|
||||
}else{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
var UserRoles = UserRolesFromContext.Roles(HttpContext.Items);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user