public async Task <ContactType[]> ListContactTypes() { var list = await UnitOfWork.ContactType.ListAll(); return(list.Select(t => ContactType.FromEntity(t)).ToArray()); }