示例#1
0
        public async Task <ContactType[]> ListContactTypes()
        {
            var list = await UnitOfWork.ContactType.ListAll();

            return(list.Select(t => ContactType.FromEntity(t)).ToArray());
        }