Exemplo n.º 1
0
        public ActionResult TravelDetail(int reqID, int notificationID = 0, int newNotificationStatus = 0)
        {
            ViewBag.Request       = travelHelper.GetRequest(reqID);
            ViewBag.Moneda        = travelHelper.GetTipoMoneda();
            ViewBag.Conceptos     = travelHelper.GetListConceptos(reqID);
            ViewBag.ConceptosList = travelHelper.ListaConceptos();

            if (notificationID != 0 && newNotificationStatus != 0)
            {
                switch (newNotificationStatus)
                {
                case 1:
                    notify.ChangeStatus(notificationID, newNotificationStatus);
                    break;
                }
            }

            return(View(travelHelper.GetConceptos(reqID)));
        }