示例#1
0
        public async Task <ActionResult> DeleteConfirmed(int id)
        {
            Web1.Areas.Masters.Models.VENDOR vENDOR = await db.VENDORs.FindAsync(id);

            db.VENDORs.Remove(vENDOR);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
示例#2
0
        public async Task <ActionResult> Edit([Bind(Include = "TRANSPORTERID,LOCCODE,COMPANY_NAME,SHORT_NAME,PREFIXTAG,ACTIVE,VALIDFROM,VALIDTILL,ADDRESS1,ADDRESS2,CITY,PHONE1,PHONE2,ZIPCODE,EMAILID,FNAME,MNAME,LNAME,MODBY,MODON,CREATEDON,EFFDT")]  Web1.Areas.Masters.Models.VENDOR vENDOR)
        {
            if (ModelState.IsValid)
            {
                db.Entry(vENDOR).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(vENDOR));
        }
示例#3
0
        // GET: VENDORs/Delete/5
        public async Task <ActionResult> Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Web1.Areas.Masters.Models.VENDOR vENDOR = await db.VENDORs.FindAsync(id);

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