private async Task <User> CreateUserDetailsAndContacts(User user) { var contact = new Contact() { Type = nameof(User), TypeId = user.Id, Email_1 = user.Email }; _dataContext.Contacts.Add(contact); await _dataContext.SaveChangesAsync(); return(user); }
public async Task <bool> Complete() { return(await _context.SaveChangesAsync() > 0); }