Skip to content

Instantly share code, notes, and snippets.

Created March 19, 2017 21:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
private void _btnAddPerson_Click(object sender, EventArgs e)
var name = _inputName.Text;
var lastName = _inputLastName.Text;
var id = PeopleRepository.SavePerson(new Person
Name = name,
LastName = lastName
var person = PeopleRepository.GetPerson(id);
if (person == null)
Toast.MakeText(this, $"Person: Name={name}, LastName={lastName} wasn't properly saved!", ToastLength.Long).Show();
Toast.MakeText(this, $"Person saved, details: {person}", ToastLength.Long).Show();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment