private void OnEnable() { contact = ContactListPage.GetComponent <contactlist>(); controller = Canvas.GetComponent <GroupInformationcontrol>(); command = PlayerPrefs.GetString("id"); Debug.Log(command); if (command == "create new") { discord.text = ""; interest.text = ""; mobile.text = ""; bday.text = ""; name.text = ""; notes.text = ""; //Debug.Log(notes.text); } else { string information = controller.GetIndividual(command); string[] container = information.Split(' '); name.text = container[0].Substring(6, container[0].Length - 7); bday.text = container[1].Substring(6, container[1].Length - 7); mobile.text = container[2].Substring(8, container[2].Length - 9); discord.text = container[3].Substring(9, container[3].Length - 10); interest.text = container[4].Substring(10, container[4].Length - 11); notes.text = container[5].Substring(7, container[5].Length - 8); } }
public async Task <DTOcontactlist> PostContact(DTOcontactlist newDTO) { contactlist newContact = EntityMapper.updateEntity(null, newDTO); db.contactlists.Add(newContact); await db.SaveChangesAsync(); return(newDTO); }
public static contactlist updateEntity(contactlist entityObjct, DTOcontactlist dto) { if (entityObjct == null) { entityObjct = new contactlist(); } entityObjct.idcontactlist = dto.idcontactlist; entityObjct.UserID = dto.UserID; entityObjct.ContactsUserID = dto.ContactsUserID; return(entityObjct); }
void Start() { contact = ContactListPage.GetComponent <contactlist>(); controller = Canvas.GetComponent <GroupInformationcontrol>(); individual = controller.GetIndividualMap(); }