public string SaveImage(string Base64String)
        {
            string fileName = Guid.NewGuid() + ".png";
            Image  image    = CommonCls.Base64ToImage(Base64String);
            var    subPath  = Server.MapPath("~/CustomerPhoto");
            var    path     = Path.Combine(subPath, fileName);

            image.Save(path, System.Drawing.Imaging.ImageFormat.Png);

            string URL = CommonCls.GetURL() + "/CustomerPhoto/" + fileName;

            return(URL);
        }
        public string SaveImage(string Base64String)
        {
            string fileName = Guid.NewGuid() + ".Jpeg";

            System.Drawing.Image image = CommonCls.Base64ToImage(Base64String);
            var subPath = System.Web.HttpContext.Current.Server.MapPath("~/CustomerPhoto");
            var path    = System.IO.Path.Combine(subPath, fileName);

            image.Save(path, System.Drawing.Imaging.ImageFormat.Jpeg);

            string URL = CommonCls.GetURL() + "/CustomerPhoto/" + fileName;

            return(URL);
        }