public async Task <ActionResult> DeleteConfirmed(int id)
        {
            SealCategory sealCategory = await db.SealCategorys.FindAsync(id);

            db.SealCategorys.Remove(sealCategory);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
        public async Task <ActionResult> Edit([Bind(Include = "Id,Name,Code,SealSpecifications,TestImagePath,CreateTime,IsRemoved")] SealCategory sealCategory)
        {
            if (ModelState.IsValid)
            {
                db.Entry(sealCategory).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(sealCategory));
        }
        // GET: SealCategories/Delete/5
        public async Task <ActionResult> Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            SealCategory sealCategory = await db.SealCategorys.FindAsync(id);

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