Exemplo n.º 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            TendererInformation tendererInformation = db.TendererInformations.Find(id);

            db.TendererInformations.Remove(tendererInformation);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "Id,CompanyName,LotNo,ProjectTitle,RepresentativeName,PhoneNo,SubmissionDate,YearofProject,CreatedDate,IsDeleted")] TendererInformation tendererInformation)
 {
     if (ModelState.IsValid)
     {
         tendererInformation.CreatedDate     = DateTime.Now;
         db.Entry(tendererInformation).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tendererInformation));
 }
Exemplo n.º 3
0
        // GET: TendererInformations/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            TendererInformation tendererInformation = db.TendererInformations.Find(id);

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