BLL.UserGroupRight.DeleteUserGroupRights C# (CSharp) Method

DeleteUserGroupRights() public static method

public static DeleteUserGroupRights ( int userGroupId ) : bool
userGroupId int
return bool
        public static bool DeleteUserGroupRights(int userGroupId)
        {
            using (var uow = new DAL.UnitOfWork())
            {
                uow.UserGroupRightRepository.DeleteRange(x => x.UserGroupId == userGroupId);
                return uow.Save();
            }
        }