public AssociationWithPermissionsResponseModel(SelectionReadOnly selection) { if (selection == null) { throw new ArgumentNullException(nameof(selection)); } Id = selection.Id; ReadOnly = selection.ReadOnly; }
public SelectionReadOnlyResponseModel(SelectionReadOnly selection) { if (selection == null) { throw new ArgumentNullException(nameof(selection)); } Id = selection.Id.ToString(); ReadOnly = selection.ReadOnly; }