public ActionResult DeleteConfirmed(int id)
        {
            ManufacturerWindowProfile manufacturerWindowProfile = db.ManufacturerWindowProfiles.Find(id);

            db.ManufacturerWindowProfiles.Remove(manufacturerWindowProfile);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ManufacturerWindowProfileID,TitleCompany")] ManufacturerWindowProfile manufacturerWindowProfile)
 {
     if (ModelState.IsValid)
     {
         db.Entry(manufacturerWindowProfile).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(manufacturerWindowProfile));
 }
        public ActionResult Create([Bind(Include = "ManufacturerWindowProfileID,TitleCompany")] ManufacturerWindowProfile manufacturerWindowProfile)
        {
            if (ModelState.IsValid)
            {
                db.ManufacturerWindowProfiles.Add(manufacturerWindowProfile);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

            if (manufacturerWindowProfile == null)
            {
                return(HttpNotFound());
            }
            return(View(manufacturerWindowProfile));
        }