public ActionResult Create(webpages_OAuthMembership webpages_oauthmembership)
        {
            if (ModelState.IsValid)
            {
                if (string.IsNullOrEmpty(webpages_oauthmembership.Provider))
                {
                    ModelState.AddModelError("", "Provider can not be null.");
                    return View(webpages_oauthmembership);
                }

                db.webpages_OAuthMembership.Add(webpages_oauthmembership);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(webpages_oauthmembership);
        }
 public ActionResult Edit(webpages_OAuthMembership webpages_oauthmembership)
 {
     if (ModelState.IsValid)
     {
         db.Entry(webpages_oauthmembership).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(webpages_oauthmembership);
 }