Ejemplo n.º 1
0
        public ActionResult AddRequest(TrvReq req)
        {
            req.Activo    = true;
            req.Creadopor = int.Parse(Session["IdUser"].ToString());
            req.FAlta     = DateTime.Now;
            req.IdEstatus = 1;
            travelHelper.InsertRequest(req);

            notify.CreateActionNotification(string.Format("ha creado una solicitud de vijae"), string.Format("({0}, {1})", req.PaisDes, req.Destino), "LibRequest", "Travel", 1, int.Parse(Session["IdUser"].ToString()), "airplanemode_active");
            notify.CreateActionNotification(string.Format("ha creado una solicitud de vijae"), string.Format("({0}, {1})", req.PaisDes, req.Destino), "LibRequest", "Travel", 3045, int.Parse(Session["IdUser"].ToString()), "airplanemode_active");
            notify.CreateActionNotification(string.Format("ha creado una solicitud de vijae"), string.Format("({0}, {1})", req.PaisDes, req.Destino), "LibRequest", "Travel", 14, int.Parse(Session["IdUser"].ToString()), "airplanemode_active");
            notify.CreateActionNotification(string.Format("ha creado una solicitud de vijae"), string.Format("({0}, {1})", req.PaisDes, req.Destino), "LibRequest", "Travel", 3066, int.Parse(Session["IdUser"].ToString()), "airplanemode_active");

            return(Redirect(Url.Action("LibRequest", "Travel")));
        }