public async Task <ActionResult> DeleteConfirmed(string id) { VideoPointInformation videoPointBitInformation = await db.VideoPointInformation.FindAsync(id); db.VideoPointInformation.Remove(videoPointBitInformation); await db.SaveChangesAsync(); return(RedirectToAction("Index")); }
public async Task <ActionResult> Edit([Bind(Include = "id,VPBISerialNumber,VPISerialNumber,VPBIMonitoringPointNumber,VPBIAffiliatedOrganization,VPBIBelongToTheRegion,VPBIPlatform,VPBILongitude,VPBILatitude,VersionNo,TransactionID,CreateBy,CreateOn,UpdateBy,UpdateOn,DataLevel,Latitude,Longitude,IsDeleted,Polyline,Polygon")] VideoPointInformation videoPointBitInformation) { if (ModelState.IsValid) { db.Entry(videoPointBitInformation).State = System.Data.Entity.EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(videoPointBitInformation)); }
// GET: VideoPointInformations/Delete/5 public async Task <ActionResult> Delete(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } VideoPointInformation videoPointBitInformation = await db.VideoPointInformation.FindAsync(id); if (videoPointBitInformation == null) { return(HttpNotFound()); } return(View(videoPointBitInformation)); }