public ActionResult DeleteConfirmed(int id) { ServiceProgressReport serviceProgressReport = db.ServiceProgressReport.Find(id); db.ServiceProgressReport.Remove(serviceProgressReport); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,StartDateTime,EsteemExtractDateTime,BAMExportDateTime,ProcessSuccessFlag,NewItemCount,LocationChangeCount,AssetTagChangeCount,DeployedCount,ReturnedCount,CreatedDate,UpdatedDate,DeletedDate")] ServiceProgressReport serviceProgressReport) { if (ModelState.IsValid) { db.Entry(serviceProgressReport).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(serviceProgressReport)); }
// GET: ServiceProgressReports/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } ServiceProgressReport serviceProgressReport = db.ServiceProgressReport.Find(id); if (serviceProgressReport == null) { return(HttpNotFound()); } return(View(serviceProgressReport)); }
public static ServiceProgressReportBsm Map_Results(ServiceProgressReport record) { return(Mapper.Map <ServiceProgressReport, ServiceProgressReportBsm>(record)); }