public ActionResult _Updateprofile(Admin_Details admin_Details)
 {
     admin_Details.Admin_Id = Convert.ToInt32(Session["Admin Id"]);
     db.Admin_Details.Add(admin_Details);
     db.SaveChanges();
     return(PartialView("_AdProfiledet"));
 }
 public ActionResult _AdProfile(Admin_Details admin_Details)
 {
     admin_Details.Login_Id = Session["Login Id"].ToString();
     db.Admin_Details.Add(admin_Details);
     try
     {
         db.SaveChanges();
         return(PartialView("_AdProfiledet"));
     }
     catch (Exception e)
     {
         ModelState.AddModelError("", "Something Went Wrong Please Try Again Later!!!");
         return(PartialView(admin_Details));
     }
 }