public ActionResult DeleteConfirmed(int id)
        {
            PGO pGO = db.PGOs.Find(id);

            db.PGOs.Remove(pGO);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "PGO_ID,PGO_First_Name,PGO_Last_Name,PGO_ID_Number,PGO_Email,PGO_Contact_No,PGO_Password,PGO_Status")] PGO pGO)
 {
     if (ModelState.IsValid)
     {
         db.Entry(pGO).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(pGO));
 }
        public ActionResult Create([Bind(Include = "PGO_ID,PGO_First_Name,PGO_Last_Name,PGO_ID_Number,PGO_Email,PGO_Contact_No,PGO_Password,PGO_Status")] PGO pGO)
        {
            if (ModelState.IsValid)
            {
                db.PGOs.Add(pGO);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(pGO));
        }
        // GET: PGOs/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            PGO pGO = db.PGOs.Find(id);

            if (pGO == null)
            {
                return(HttpNotFound());
            }
            return(View(pGO));
        }
        public async Task OnGet()
        {
            PaginawebDTO pd = new PaginawebDTO();
            PaginawebDTO pd2 = new PaginawebDTO();
            PaginawebDTO pd3 = new PaginawebDTO();
            int          val = 0, contor = 0;
            var          valori = await clt.GetAllAsync();

            int ok = 1;

            foreach (var item in valori)
            {
                if (item.Contains(SearchString))
                {
                    contor++;
                    val++;
                }
                if (ok == 1)
                {
                    pd.justID = item;
                }
                else if (ok == 2)
                {
                    pd.Name = item;
                }
                else if (ok == 3)
                {
                    pd.Path = item;
                }
                else if (ok == 4)
                {
                    pd.Size = item;
                }
                else if (ok == 5)
                {
                    pd.cDate = item;
                }
                else if (ok == 6)
                {
                    pd.mDate = item;
                }
                else if (ok == 7)
                {
                    pd.Extension = item;
                }
                else if (ok == 8)
                {
                    pd.Resolution = item;
                    if (val > 0)
                    {
                        PGO.Add(pd);
                        if (pd.Name.Contains("."))
                        {
                            pd2.Pozaname = pd.Name;
                        }
                        else
                        {
                            pd2.Pozaname = pd.Name + pd.Resolution;
                        }
                        PGO2.Add(pd2);
                        val = 0;
                    }
                    ok  = 0;
                    pd  = new PaginawebDTO();
                    pd2 = new PaginawebDTO();
                }
                ok++;
            }
            string lastcontor = contor.ToString() + "    '" + SearchString + "'    " + " Found in Database!";

            pd3.Contor = lastcontor;
            Console.WriteLine(lastcontor);
            PGO3.Add(pd3);
        }