public List<ItemStruct> getUnitListByDimenstion(long dimensionId)
{
List<Unit> units = unitmanager.DimensionRepo.Get(dimensionId).Units.ToList();
ItemStruct tempUnitStruct = new ItemStruct();
foreach (Unit u in units)
{
tempUnitStruct.Id = u.Id;
tempUnitStruct.Name = u.Name;
UnitStructs.Add(tempUnitStruct);
}
return UnitStructs;
}