public void submit() { string id = command; // controller.SetGroup(newGroupName.text, id); /*Dictionary<string, List<string>> temp = controller.GetGroupMap(); * foreach(string x in temp.Keys){ * Debug.Log(x); * }*/ string txtLine = $"Name:\"{name.text}\" Bday:\"{bday.text}\" Mobile:\"{mobile.text}\" Discord:\"{discord.text}\" Interest:\"{interest.text}\" Notes:\"{notes.text}\""; if (name.text.Length == 0 && bday.text.Length == 0 && mobile.text.Length == 0 && discord.text.Length == 0 && interest.text.Length == 0 && notes.text.Length == 0) { Debug.Log("user not input anything"); } else { if (command == "create new") { string tempId = controller.IdGenerator(); controller.SetIndividual(tempId, txtLine); contact.submitNewCard(name.text, tempId); } else { controller.SetIndividual(id, txtLine); } } }
private void writeToDb() { string Id = db.IdGenerator(); db.SetIndividual(Id, "this is placebo"); }