public static bool CanCreate(this CreateDataHolderCommand command) { return(!NotAllowedToCreateDataHolderTypes.Contains(command.DataHolderType)); }
public async Task <ActionResult <int> > Create(CreateDataHolderCommand command) { command.UserId = _currentUserService.UserId; return(await Mediator.Send(command)); }