Skip to content
This repository has been archived by the owner on Oct 6, 2019. It is now read-only.

Commit

Permalink
Blank_Name_is_accepted_as_Group_name (#1089)
Browse files Browse the repository at this point in the history
* Blank_Name_is_accepted_as_Group_name

* tab fix

* fixed spaces

* vs studio spaces bug fixed

* changed tabs to spaces
  • Loading branch information
SergeyDryomin authored and valadas committed Sep 29, 2019
1 parent 768aa89 commit d1eb942
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,11 @@ private void Validate(RoleDto role)
private void Validate(RoleGroupDto role)
{
Requires.NotNullOrEmpty("Name", role.Name);

if (string.IsNullOrWhiteSpace(role.Name))
{
throw new ArgumentException(Localization.GetExceptionMessage("ArgumentCannotBeNullOrEmpty", "The argument '{0}' cannot be null or empty.", (object)"Name"), "Name");
}
}

private void Validate(UserRoleDto userRoleDto)
Expand Down

0 comments on commit d1eb942

Please sign in to comment.