Ejemplo n.º 1
0
        public async Task <InvokeResult> AddServiceBoardAsync(ServiceBoard serviceBoard, EntityHeader org, EntityHeader user)
        {
            ValidationCheck(serviceBoard, Actions.Create);

            await AuthorizeAsync(serviceBoard, AuthorizeResult.AuthorizeActions.Create, user, org);

            await _repo.AddServiceBoardAsync(serviceBoard);

            return(InvokeResult.Success);
        }
Ejemplo n.º 2
0
        public async Task <InvokeResult> UpdateServiceBoardAsync(ServiceBoard serviceBoard, EntityHeader org, EntityHeader user)
        {
            await AuthorizeAsync(serviceBoard, AuthorizeResult.AuthorizeActions.Update, user, org);

            Validator.Validate(serviceBoard, Actions.Update);

            await _repo.UpdateServiceBoardAsync(serviceBoard);

            return(InvokeResult.Success);
        }
 public Task <InvokeResult> UpdateServiceTicketTemplateAsync([FromBody] ServiceBoard board)
 {
     return(_mgr.UpdateServiceBoardAsync(board, OrgEntityHeader, UserEntityHeader));
 }