Ejemplo n.º 1
0
 public ActionResult Edit([Bind(Include = "id_current_Quarter,idcurrent_Quarter,start_Date,end_Date")] currentQuarter currentQuarter)
 {
     if (ModelState.IsValid)
     {
         db.Entry(currentQuarter).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(currentQuarter));
 }
Ejemplo n.º 2
0
        public ActionResult Create([Bind(Include = "id_current_Quarter,idcurrent_Quarter,start_Date,end_Date")] currentQuarter currentQuarter)
        {
            if (ModelState.IsValid)
            {
                db.currentQuarters.Add(currentQuarter);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(currentQuarter));
        }
Ejemplo n.º 3
0
        // GET: currentQuarters/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            currentQuarter currentQuarter = db.currentQuarters.Find(id);

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