public async Task <int> CreateAsync(DTO.PermissionRequest newPermission) { var permission = _mapper.Map <Permission>(newPermission); await _repository.AddPermissionAsync(permission); await _repository.SaveAsync(); return(permission.Id); }