// GET: vendorType/Edit/5 public async Task <ActionResult> Edit(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } tbl_vendorType tbl_vendorType = await db.tbl_vendorType.FindAsync(id); if (tbl_vendorType == null) { return(HttpNotFound()); } return(View(tbl_vendorType)); }