public ActionResult CreatePost(ResourcePool resourcepool)
        {
            if (ModelState.IsValid)
            {
                db.ResourcePools.Add(resourcepool);
                db.SaveChanges();
                return RedirectToAction("Dashboard", "Home");
            }

            return View("~/Views/Home/Dashboard.cshtml", resourcepool);
        }
 public ActionResult EditPost(ResourcePool resourcepool)
 {
     if (ModelState.IsValid)
     {
         db.Entry(resourcepool).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Dashboard", "Home");
     }
     return View("~/Views/Home/Dashboard.cshtml", resourcepool);
 }