Skip to content

Commit 9fd10c3

Browse files
RSP-5332/5357/5358 Enable/disable user from sponsor organisation (#61)
1 parent 6307982 commit 9fd10c3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/WebApi/Rsp.RtsService.WebApi/Controllers/OrganisationController.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,14 @@ public async Task<ActionResult<OrganisationSearchResponse>> SearchByName(
3131
string sort = "asc",
3232
string sortField = "name")
3333
{
34-
if (string.IsNullOrWhiteSpace(name) || name.Trim().Length < 3)
34+
if (name.Length < 3)
3535
{
3636
return BadRequest("Name needs to include minimum 3 characters");
3737
}
38-
3938
if (pageIndex <= 0)
4039
{
4140
return BadRequest("pageIndex must be greater than 0 if specified.");
4241
}
43-
4442
if (pageSize.HasValue && pageSize <= 0)
4543
{
4644
return BadRequest("pageSize must be greater than 0 if specified.");

0 commit comments

Comments
 (0)