Exemplo n.º 1
0
        internal ContactDetailViewModel GetFirst(string key = "Phone")
        {
            var model       = new ContactDetailViewModel();
            var contactType = ContactType.GetFirst(key);

            if (contactType != null)
            {
                model.ContactTypeId = contactType.Id;
                model.ContactText   = contactType.Name;
                model.IsDeleted     = contactType.IsDeleted;
            }

            return(model);
        }