private object[] OnEndGetById(System.IAsyncResult result)
 {
     DataAccess.RestaurantWebService.RestaurantEntity retVal = ((IRestaurantWebService)(this)).EndGetById(result);
     return(new object[] {
         retVal
     });
 }
 public System.IAsyncResult BeginDelete(DataAccess.RestaurantWebService.RestaurantEntity entity, System.AsyncCallback callback, object asyncState)
 {
     object[] _args = new object[1];
     _args[0] = entity;
     System.IAsyncResult _result = base.BeginInvoke("Delete", _args, callback, asyncState);
     return(_result);
 }
 public void DeleteAsync(DataAccess.RestaurantWebService.RestaurantEntity entity, object userState)
 {
     if ((this.onBeginDeleteDelegate == null))
     {
         this.onBeginDeleteDelegate = new BeginOperationDelegate(this.OnBeginDelete);
     }
     if ((this.onEndDeleteDelegate == null))
     {
         this.onEndDeleteDelegate = new EndOperationDelegate(this.OnEndDelete);
     }
     if ((this.onDeleteCompletedDelegate == null))
     {
         this.onDeleteCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnDeleteCompleted);
     }
     base.InvokeAsync(this.onBeginDeleteDelegate, new object[] {
         entity
     }, this.onEndDeleteDelegate, this.onDeleteCompletedDelegate, userState);
 }
 public DataAccess.RestaurantWebService.RestaurantEntity EndGetById(System.IAsyncResult result)
 {
     object[] _args = new object[0];
     DataAccess.RestaurantWebService.RestaurantEntity _result = ((DataAccess.RestaurantWebService.RestaurantEntity)(base.EndInvoke("GetById", _args, result)));
     return(_result);
 }
 public void DeleteAsync(DataAccess.RestaurantWebService.RestaurantEntity entity)
 {
     this.DeleteAsync(entity, null);
 }
 private System.IAsyncResult OnBeginDelete(object[] inValues, System.AsyncCallback callback, object asyncState)
 {
     DataAccess.RestaurantWebService.RestaurantEntity entity = ((DataAccess.RestaurantWebService.RestaurantEntity)(inValues[0]));
     return(((IRestaurantWebService)(this)).BeginDelete(entity, callback, asyncState));
 }
 System.IAsyncResult IRestaurantWebService.BeginDelete(DataAccess.RestaurantWebService.RestaurantEntity entity, System.AsyncCallback callback, object asyncState)
 {
     return(base.Channel.BeginDelete(entity, callback, asyncState));
 }