Ejemplo n.º 1
0
        public async Task <ActionResult> DeleteConfirmed(Guid id)
        {
            COPR16_ITEMS_VOLUME cOPR16_ITEMS_VOLUME = await db.COPR16_ITEMS_VOLUME.FindAsync(id);

            db.COPR16_ITEMS_VOLUME.Remove(cOPR16_ITEMS_VOLUME);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
        public async Task <ActionResult> Edit([Bind(Include = "RUNNING_ID,ITEM_ID,BUSI_DATE,QTY")] COPR16_ITEMS_VOLUME cOPR16_ITEMS_VOLUME)
        {
            if (ModelState.IsValid)
            {
                db.Entry(cOPR16_ITEMS_VOLUME).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(cOPR16_ITEMS_VOLUME));
        }
Ejemplo n.º 3
0
        public async Task <ActionResult> Create([Bind(Include = "RUNNING_ID,ITEM_ID,BUSI_DATE,QTY")] COPR16_ITEMS_VOLUME cOPR16_ITEMS_VOLUME)
        {
            if (ModelState.IsValid)
            {
                cOPR16_ITEMS_VOLUME.RUNNING_ID = Guid.NewGuid();
                db.COPR16_ITEMS_VOLUME.Add(cOPR16_ITEMS_VOLUME);
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }

            return(View(cOPR16_ITEMS_VOLUME));
        }
Ejemplo n.º 4
0
        // GET: COPR16_ITEMS_VOLUME/Delete/5
        public async Task <ActionResult> Delete(Guid?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            COPR16_ITEMS_VOLUME cOPR16_ITEMS_VOLUME = await db.COPR16_ITEMS_VOLUME.FindAsync(id);

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