public ActionResult DeleteResource(int id)
        {
            var service = new ResourceServices();

            if (service.DeleteResource(id))
            {
                TempData["SaveResult"] = "Resource has been deleted.";
                return(RedirectToAction("Index"));
            }
            ModelState.AddModelError("", "Your entry could not be deleted.");
            return(View());
        }