public static void Create(TbContact contact) { using (DataAccess.Contact db = new DataAccess.Contact()) { contact.RegisterDate = DateTime.Now; contact.Status = "1"; db.Create(contact); } }
public System.Threading.Tasks.Task AddContactAsync(DataAccess.Contact contact) { return(base.Channel.AddContactAsync(contact)); }
public void AddContact(DataAccess.Contact contact) { base.Channel.AddContact(contact); }