public ActionResult Addmember(addMemberClass add)
        {
            dbClass sdb = new dbClass();


            String fn  = Path.GetFileNameWithoutExtension(add.ImageFile.FileName);
            String ext = Path.GetExtension(add.ImageFile.FileName);

            fn       = fn + DateTime.Now.ToString("yymmssfff") + ext;
            add.path = "~/images/" + fn;
            fn       = Path.Combine(Server.MapPath("~/images/"), fn);
            add.ImageFile.SaveAs(fn);

            add.photo = fn.ToString();

            try
            {
                if (ModelState.IsValid)
                {
                    if (sdb.AddMember(add))
                    {
                        // ViewBag.Message = String.Format("Hello{0}.\\ncurrent Date and time:{1}", "name", DateTime.Now.ToString());
                        ViewBag.Message = "Member Added Successfully";
                        ModelState.Clear();
                        return(RedirectToAction("Index"));
                    }
                }
            }
            catch
            {
                return(View());
            }
            return(View());
        }