/// <summary> /// To determine if a person id already exists /// </summary> /// <param name="id"></param> /// <returns></returns> private bool PersonExists(long id) { int count = peopleService.Count(p => p.Id == id).Result; return(count > 0); }