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