Пример #1
0
        public async Task <ActionResult> DeleteConfirmed(int id)
        {
            ReportInspFollowUpE reportInspFollowUpE = await db.ReportInspFollowUpEs.FindAsync(id);

            db.ReportInspFollowUpEs.Remove(reportInspFollowUpE);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
Пример #2
0
        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));
        }
Пример #3
0
        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));
        }
Пример #4
0
        // 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));
        }