public async Task <IActionResult> GetAttributeTypesAsync() { var ret = new List <AttributeTypeViewModel>(); var attributes = await _listManager.GetAllAttributeTypeAsync(); foreach (var attribute in attributes) { ret.Add(new AttributeTypeViewModel(attribute)); } return(Ok(ret)); }