/// <summary> /// Calls to update Person in database /// </summary> /// <param name="person"></param> public void UpdatePerson(CACCCheckInDb.Person person) { try { using (CACCCheckInServiceProxy proxy = new CACCCheckInServiceProxy()) { proxy.Open(); logger.Debug("Calling UpdatePeople on CACCCheckInService."); proxy.UpdatePeople(person); } } catch (Exception ex) { Debug.Assert(View != null); View.ViewDispatcher.BeginInvoke(DispatcherPriority.DataBind, new DispatcherOperationCallback( delegate(object arg) { View.DisplayExceptionDetail(ex); return(null); }), null); } }
/// <summary> /// /// </summary> /// <param name="person"></param> public static void UpdatePerson(CACCCheckInDb.Person person) { using (CACCCheckInServiceProxy proxy = new CACCCheckInServiceProxy()) { proxy.Open(); proxy.UpdatePeople(person); } }