Пример #1
0
 internal int Submit()
 {
     try
     {
         SaveLog(OperationLog.LogEvent.ClickButton, "Submit", "");
         var result = _repository.SendDataToWebService(_deliveryOrderTag);
         if (result > 0)
         {
             ClearAllData();
             _repository.ClearOperationLog(_deliveryOrderTag, this.menuId);
             return(1);
         }
     }
     catch (Exception e)
     {
         _view.ShowMessage("Error", e.Message);
     }
     return(0);
 }