namespace PostgreSqlDotnetCore.Controllers { using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.Data.SqlClient; using Microsoft.EntityFrameworkCore; using PostgreSqlDotnetCore.Models; using System.Threading.Tasks; public class PetDiagnosticsControler : BaseController { public PetDiagnosticsControler(UserManager userManager) : base(userManager) { } // GET: PetDiagnostics public async Task IndexAsync() { var query = await db.PetDetailsProcedureObj.ToListAsync(); return View(); } // GET: PetDiagnostics/Details/5 public ActionResult Details(int id) { return View(); } // GET: PetDiagnostics/Create public ActionResult Create() { return View(); } // POST: PetDiagnostics/Create [HttpPost] [ValidateAntiForgeryToken] public ActionResult Create(IFormCollection collection) { try { return RedirectToAction(nameof(IndexAsync)); } catch { return View(); } } // GET: PetDiagnostics/Edit/5 public ActionResult Edit(int id) { return View(); } // POST: PetDiagnostics/Edit/5 [HttpPost] [ValidateAntiForgeryToken] public ActionResult Edit(int id, IFormCollection collection) { try { return RedirectToAction(nameof(IndexAsync)); } catch { return View(); } } // GET: PetDiagnostics/Delete/5 public ActionResult Delete(int id) { return View(); } // POST: PetDiagnostics/Delete/5 [HttpPost] [ValidateAntiForgeryToken] public ActionResult Delete(int id, IFormCollection collection) { try { return RedirectToAction(nameof(IndexAsync)); } catch { return View(); } } } }