Esempio n. 1
0
        public async Task <ActionResult> DeleteConfirmed(string id)
        {
            VideoPointInformation videoPointBitInformation = await db.VideoPointInformation.FindAsync(id);

            db.VideoPointInformation.Remove(videoPointBitInformation);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
        // 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));
        }