GroupsControllerGetIsMember - метод

Get flag whether current user is a member of specified group.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
C#
[HttpGetAttribute("{id:guid}/is-member")]
[SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<bool> GetIsMember(
	[FromRouteAttribute] Guid id,
	[FromQueryAttribute] bool ignoreCache = false,
	CancellationToken cancellationToken = default
)

Параметры

id  Guid
Group's identifier.
ignoreCache  Boolean  (Optional)
Whether to ignore server cache when obtaining the value. Pass true for administrative UI.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

Возвращаемое значение

TaskBoolean
true if current user is a member of the group; false otherwise.

См. также