Example #1
0
 public Task <RoleUiModel> UpdateRoleAsync(Guid roleIdToBeUpdated, Guid accountIdToBeUpdatedThisRole, RoleForModificationUiModel updatedRole)
 {
     throw new NotImplementedException();
 }
Example #2
0
        public async Task <IActionResult> UpdateEventWithModifiedPriorityAsync(Guid id, [FromBody] RoleForModificationUiModel updatedRole)
        {
            if (id == Guid.Empty || String.IsNullOrEmpty(updatedRole.ModifiedName))
            {
                return(BadRequest());
            }

            var userAudit = await _inquiryUserProcessor.GetUserByLoginAsync(GetEmailFromClaims());

            if (userAudit == null)
            {
                return(BadRequest());
            }

            await _updateRoleProcessor.UpdateRoleAsync(id, userAudit.Id, updatedRole);

            return(Ok(await _inquiryRoleProcessor.GetRoleByIdAsync(id)));
        }