Пример #1
0
 public static bool CanCreate(this CreateDataCategoryCommand command)
 {
     return(!NotAllowedToCreateDataCategoryTypes.Contains(command.DataCategoryType));
 }
Пример #2
0
        public async Task <ActionResult <int> > Create(CreateDataCategoryCommand command)
        {
            command.UserId = _currentUserService.UserId;

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