public string UploadImage(string base64, string imageName, int userid) { if (SaveImage(base64, imageName)) { if (userid != 0) { return(BALServices.UploadImage(base64, imageName, userid)); } else { return(new JavaScriptSerializer().Serialize(true)); } } else { return(new JavaScriptSerializer().Serialize(false)); } //return new JavaScriptSerializer().Serialize(SaveImage(base64, imageName)); }