public async Task <InvokeResult> AddLabelAsync(Models.Label label, EntityHeader org, EntityHeader user) { ValidationCheck(label, Actions.Create); await AuthorizeAsync(label, AuthorizeResult.AuthorizeActions.Create, user, org); await _repo.AddLabelAsync(label); return(InvokeResult.Success); }
public async Task <InvokeResult <LabelSet> > AddLabelAsync(Label label, EntityHeader org, EntityHeader user) { await _labelRepo.AddLabelAsync(label, org, user); return(await GetLabelSetAsync(org, user)); }