public DomainPermission Put(DomainPermission request)
		{
			DomainPermissionEntity entity = request.TranslateToEntity();

			entity = GenericRepository.Add(AuthAdminDatabase, DomainPermissionsCollection, entity);

			return entity.TranslateToResponse();
		}
		public DomainPermission Post(DomainPermission request)
		{
			DomainPermissionEntity entity = request.TranslateToEntity();

			if (entity.Id == 0)
				entity.Id = GenericRepository.GetMaxIdIncrement<DomainPermissionEntity>(AuthAdminDatabase, DomainPermissionsCollection);

			entity = GenericRepository.Add(AuthAdminDatabase, DomainPermissionsCollection, entity);

			return entity.TranslateToResponse();
		}