public ActionResult DeleteConfirmed(Guid id)
        {
            ProductOrientation productOrientation = db.ProductOrientations.Find(id);

            productOrientation.IsDeleted    = true;
            productOrientation.DeletionDate = DateTime.Now;

            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,Title,IsActive,CreationDate,LastModifiedDate,IsDeleted,DeletionDate,Description")] ProductOrientation productOrientation)
 {
     if (ModelState.IsValid)
     {
         productOrientation.IsDeleted       = false;
         db.Entry(productOrientation).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(productOrientation));
 }
        // GET: ProductOrientations/Edit/5
        public ActionResult Edit(Guid?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ProductOrientation productOrientation = db.ProductOrientations.Find(id);

            if (productOrientation == null)
            {
                return(HttpNotFound());
            }
            return(View(productOrientation));
        }
        public ActionResult Create([Bind(Include = "Id,Title,IsActive,CreationDate,LastModifiedDate,IsDeleted,DeletionDate,Description")] ProductOrientation productOrientation)
        {
            if (ModelState.IsValid)
            {
                productOrientation.IsDeleted    = false;
                productOrientation.CreationDate = DateTime.Now;
                productOrientation.Id           = Guid.NewGuid();
                db.ProductOrientations.Add(productOrientation);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(productOrientation));
        }