public ActionResult PostAdminData(AdminViewModel model)
        {
            int mid = Convert.ToInt32(Session["MemberId"]);

            using (ProjectEntities db = new ProjectEntities())
            {
                // update admin profile
                db.UpdateAdminProfile(mid, model.FirstName, model.LastName, Session["EmailId"].ToString(),
                                      Session["Password"].ToString(), model.Gender, model.Address);


                ViewBag.Message = "Updated";
            }
            return(View("EditProfile"));
        }