public async Task <ActionResult> DeleteConfirmed(int id) { ReportInspFollowUpE reportInspFollowUpE = await db.ReportInspFollowUpEs.FindAsync(id); db.ReportInspFollowUpEs.Remove(reportInspFollowUpE); await db.SaveChangesAsync(); return(RedirectToAction("Index")); }
public async Task <ActionResult> Edit([Bind(Include = "IdReportInspFollowUpE,ComentGeneral,Dato1,Dato2,accion")] ReportInspFollowUpE reportInspFollowUpE) { if (ModelState.IsValid) { db.Entry(reportInspFollowUpE).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(reportInspFollowUpE)); }
public async Task <ActionResult> Create([Bind(Include = "IdReportInspFollowUpE,ComentGeneral,Dato1,Dato2,accion")] ReportInspFollowUpE reportInspFollowUpE) { if (ModelState.IsValid) { db.ReportInspFollowUpEs.Add(reportInspFollowUpE); await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(reportInspFollowUpE)); }
// GET: ReportInspFollowUpEs/Delete/5 public async Task <ActionResult> Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } ReportInspFollowUpE reportInspFollowUpE = await db.ReportInspFollowUpEs.FindAsync(id); if (reportInspFollowUpE == null) { return(HttpNotFound()); } return(View(reportInspFollowUpE)); }