/// <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); }
public static IContactProvider Create(this IContactProvider ignore, IServiceCollection container) { return(ignore.Create(container.BuildServiceProvider())); }
public static IContactProvider Create(this IContactProvider ignore) { return(ignore.Create((null as IServiceCollection).Create())); }