Пример #1
0
        JsonResult IDriver.Dim(string target)
        {
            target = this.GetCorectTarget(target);
            string decodedTarget = this.DecodeTarget(target);
            WebDavPicturesEditor pictureEditor = new WebDav.WebDavPicturesEditor(client);
            DimResponse          response      = new DimResponse(pictureEditor.GetSize(decodedTarget));

            return(Json(response));
        }
Пример #2
0
        JsonResult IDriver.Rotate(string target, int degree)
        {
            WebDavRoot lroot = this.GetRoot(target);

            target = this.GetCorectTarget(target);
            string decodedTarget = this.DecodeTarget(target);
            WebDavPicturesEditor pictureEditor = new WebDav.WebDavPicturesEditor(client);

            pictureEditor.Rotate(decodedTarget, degree);
            DirInfo         targetInfo = client.GetInfo(decodedTarget);
            DirInfo         parentInfo = this.GetParent(targetInfo);
            ChangedResponse response   = new ChangedResponse();

            response.Changed.Add((FileDTO)DTOBase.Create(targetInfo, parentInfo, lroot));
            return(Json(response));
        }