コード例 #1
0
 public static ProcessCommandoResponse GetSaldo()
 {
     try
     {
         using (var service = new StockManageServiceClient())
         {
             return(new ProcessCommandoResponse(true, service.GetSaldo() ?? 0));
         }
     }
     catch (Exception ex)
     {
         return(new ProcessCommandoResponse(false, ex.Message));
     }
 }
コード例 #2
0
 public static ProcessCommandoResponse InsertNewSaldoMovment(int addingSaldo)
 {
     try
     {
         using (var service = new StockManageServiceClient())
         {
             service.UpdateSaldo(addingSaldo);
             return(new ProcessCommandoResponse(true));
         }
     }
     catch (Exception ex)
     {
         return(new ProcessCommandoResponse(false, ex.Message));
     }
 }