Exemple #1
0
        public ActionResult Edit(string id, AppViewModel collection)
        {
            try
            {
                if (!ModelState.IsValid)
                {
                    return(View(collection));
                }
                // TODO: Add update logic here
                UpdateApp request = new UpdateApp()
                {
                    name     = collection.name,
                    apns_env = collection.apns_env,
                    apns_p12 = collection.safari_icon_128_128,
                    gcm_key  = collection.gcm_key,
                };


                var response = new comunication().UpdateApp(request, id);
                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }
Exemple #2
0
        // GET: Notification
        public ActionResult Index()
        {
            List <AppViewModel> Applist = new List <AppViewModel>();

            ViewBag.Permission = false;
            try
            {
                Applist = new comunication().GetAppList();
                int ROLEID = (int)EnumRole.Admin;
                ViewBag.Permission = Session["RoleID"].ToString() == ROLEID.ToString() ? true : false;
            }
            catch (Exception e)
            {
                //Writer excepton log
            }

            return(View(Applist));
        }
 void Awake()
 {
     // retain the aspect ratio of devices
     //		Camera.main.aspect = 1920 / 1080;
     //Screen.sleepTimeout = SleepTimeout.NeverSleep;
     //		Screen.SetResolution (1920, 1080, true);
     // refernceing i.e if there is no GameInformation Controller then make this the ONE.
     // if we don't do this DontDestroyOnLoad create one gameobject every time the scene switches.
     if (InfoControl == null)
     {
         DontDestroyOnLoad(gameObject);
         InfoControl = this;
         Load();
     }
     else
     if (InfoControl != this)
     {
         Destroy(gameObject);
         Debug.Log("Destroyed other Infocontrol");
     }
 }
Exemple #4
0
        // GET: Notification/Edit/5
        public ActionResult Edit(string id)
        {
            var response = new comunication().GetAppByAppID(id);

            return(View(response));
        }