protected internal JsonResult ClientSideTransactionResult(ITransactionResult result, JsonRequestBehavior behavior)
 {
     ClientSide.Models.ClientSideTransactionResult transactionResult = ClientSide.Models.ClientSideTransactionResult.fromTransactionResult(result);
     return(new JsonResult()
     {
         Data = transactionResult, JsonRequestBehavior = behavior
     });
 }
 public static ClientSideTransactionResult fromTransactionResult(ITransactionResult transactionResult)
 {
     ClientSideTransactionResult t = new ClientSideTransactionResult();
     t.Success = transactionResult.Success;
     t.Data = transactionResult.Data;
     if (transactionResult.Error != null)
     {
         t.Error = transactionResult.Error.Message;
     }
     t.NumEffected = transactionResult.NumEffected;
     return t;
 }
        public static ClientSideTransactionResult fromTransactionResult(ITransactionResult transactionResult)
        {
            ClientSideTransactionResult t = new ClientSideTransactionResult();

            t.Success = transactionResult.Success;
            t.Data    = transactionResult.Data;
            if (transactionResult.Error != null)
            {
                t.Error = transactionResult.Error.Message;
            }
            t.NumEffected = transactionResult.NumEffected;
            return(t);
        }