public async Task <ActionResult> DeleteConfirmed(int id)
        {
            Canines canines = await db.Canines.FindAsync(id);

            db.Canines.Remove(canines);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
        public async Task <ActionResult> Edit([Bind(Include = "canineID,canineName,description")] Canines canines)
        {
            if (ModelState.IsValid)
            {
                db.Entry(canines).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(canines));
        }
        public async Task <ActionResult> Create([Bind(Include = "canineID,canineName,description")] Canines canines)
        {
            if (ModelState.IsValid)
            {
                db.Canines.Add(canines);
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }

            return(View(canines));
        }
        // GET: Canines/Delete/5
        public async Task <ActionResult> Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Canines canines = await db.Canines.FindAsync(id);

            if (canines == null)
            {
                return(HttpNotFound());
            }
            return(View(canines));
        }