Beispiel #1
0
        public ActionResult SearchAllOrdenesPagoBySucursal(SCOrdenPago ordenPago)
        {
            try
            {
                IBCOrdenPago ServiceProvider = new BCOrdenPago();

                var searchResult = ServiceProvider.FindOrdenesPagoBySucursal(ordenPago);
                return(Json(new { Success = true, OrdenesPago = searchResult.OrdenesPago, Total = searchResult.OrdenesPago.Count }));
            }
            catch (Exception ex)
            {
                return(Json(new { Success = false, Exception = true, Message = ex.Message }));
            }
        }