コード例 #1
0
        /// <summary>
        /// Create a new Contact.
        /// </summary>
        public Contact Create(string firstName, string lastName, string email,
                              string homeNumber, string mobileNumber,
                              string imageHash)
        {
            var newContact = _contactProvider.Create(new Contact(
                                                         firstName,
                                                         lastName,
                                                         email,
                                                         homeNumber,
                                                         mobileNumber,
                                                         imageHash
                                                         ));

            return(newContact);
        }
コード例 #2
0
 public static IContactProvider Create(this IContactProvider ignore, IServiceCollection container)
 {
     return(ignore.Create(container.BuildServiceProvider()));
 }
コード例 #3
0
 public static IContactProvider Create(this IContactProvider ignore)
 {
     return(ignore.Create((null as IServiceCollection).Create()));
 }