public ActionResult Create(CompanyNews companynews)
        {
            if (ModelState.IsValid)
            {
                db.CompanyNews.Add(companynews);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(companynews);
        }
 public ActionResult Edit(CompanyNews companynews)
 {
     if (ModelState.IsValid)
     {
         db.Entry(companynews).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(companynews);
 }