public PreValueModel GetPreValueModel(HiveId dataTypeId)
{
using (var uow = _requestContext.Application.Hive.OpenReader<IContentStore>())
{
var dataTypeEntity = uow.Repositories.Schemas.Get<AttributeType>(dataTypeId);
if (dataTypeEntity == null)
throw new ArgumentException(string.Format("No AttributeType found for id: {0} on action Edit", dataTypeId));
var dataType = _requestContext.Application.FrameworkContext.TypeMappers.Map<AttributeType, DataType>(dataTypeEntity);
return dataType.GetPreValueModel();
}
}