public async Task <ActionResult> AddPermsToRole(Guid roleId, [FromBody] IEnumerable <Permission> permissions)
        {
            if (roleId.Equals(Guid.Empty))
            {
                return(this.BadRequest("Role Id is empty"));
            }

            try
            {
                var permissionDtos = _mapper.Map <IEnumerable <Permission>, IEnumerable <Dtos.Permission> >(permissions);

                await roleService.AddPermissionsToRoleAsync(roleId, permissionDtos);

                return(Ok());
            }
            catch (ServiceException ex)
            {
                return(StatusCode((int)ex.ErrorCode, ex.Message));
            }
            catch (Exception ex)
            {
                await _logger.Error(ex.Message);

                return(StatusCode(500, "Something went wrong"));
            }
        }