We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6307982 commit 9fd10c3Copy full SHA for 9fd10c3
src/WebApi/Rsp.RtsService.WebApi/Controllers/OrganisationController.cs
@@ -31,16 +31,14 @@ public async Task<ActionResult<OrganisationSearchResponse>> SearchByName(
31
string sort = "asc",
32
string sortField = "name")
33
{
34
- if (string.IsNullOrWhiteSpace(name) || name.Trim().Length < 3)
+ if (name.Length < 3)
35
36
return BadRequest("Name needs to include minimum 3 characters");
37
}
38
-
39
if (pageIndex <= 0)
40
41
return BadRequest("pageIndex must be greater than 0 if specified.");
42
43
44
if (pageSize.HasValue && pageSize <= 0)
45
46
return BadRequest("pageSize must be greater than 0 if specified.");
0 commit comments