コード例 #1
0
        /// <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);
            }
        }
コード例 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="person"></param>
        public static void UpdatePerson(CACCCheckInDb.Person person)
        {
            using (CACCCheckInServiceProxy proxy =
                       new CACCCheckInServiceProxy())
            {
                proxy.Open();

                proxy.UpdatePeople(person);
            }
        }