public ActionResult edit(int?id)
        {
            if (id == null)
            {
                haqqinda sl3 = db.haqqindas.FirstOrDefault(x => x.ID == id);

                return(View(sl3));
            }

            return(View());
        }
        public ActionResult edit(int?id, string header9, HttpPostedFileBase foto9)
        {
            haqqinda haqq = db.haqqindas.FirstOrDefault(x => x.ID == id);

            if (foto9 != null)
            {
                WebImage img      = new WebImage(foto9.InputStream);
                FileInfo file     = new FileInfo(foto9.FileName);
                string   imgnamee = Guid.NewGuid() + file.Extension;
                img.Save("~/uploads/" + imgnamee);
                haqq.fotourl = "/uploads/" + imgnamee;
            }
            haqq.sozz = header9;
            db.SaveChanges();

            return(RedirectToAction("Index"));
        }