// POST api/values
        public IHttpActionResult Post(ImageModel imageToSave)
        {
            ValueControllerHelper helpr = new ValueControllerHelper();

            helpr.SaveBase64(imageToSave.ImageName, imageToSave.Base64Image);
            return(Ok());
        }
Esempio n. 2
0
        public void SaveBase64Test()
        {
            ValueControllerHelper vhelp = new ValueControllerHelper();
            string fName  = "Test";
            string sImage = "xsfcsdadswfdvdvdfggdfdfssdawbfbfhtrt";
            bool   result = vhelp.SaveBase64(fName, sImage);

            if (!result)
            {
                Assert.Fail();
            }
        }