Exemplo n.º 1
0
 public static bool AnularCredito(int pCreditoId, string pObservacion)
 {
     using (var scope = new TransactionScope())
     {
         try
         {
             using (var db = new VENDIXEntities())
             {
                 db.usp_Credito_Del(pCreditoId, pObservacion, VendixGlobal.GetUsuarioId());
             }
             scope.Complete();
             return(true);
         }
         catch (Exception)
         {
             scope.Dispose();
             throw;
         }
     }
 }