Ejemplo n.º 1
0
 public static bool CanCreate(this CreateDataHolderCommand command)
 {
     return(!NotAllowedToCreateDataHolderTypes.Contains(command.DataHolderType));
 }
Ejemplo n.º 2
0
        public async Task <ActionResult <int> > Create(CreateDataHolderCommand command)
        {
            command.UserId = _currentUserService.UserId;

            return(await Mediator.Send(command));
        }