public ActionResult Create(ResourceCreate model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }

            var service = new ResourceServices();

            if (service.CreateResource(model))
            {
                TempData["SaveResult"] = "Your resource was created.";
                return(RedirectToAction("Index"));
            }

            ModelState.AddModelError("", "Resource could not be created.");
            return(View(model));
        }