public object EditFileOnPost(PostAddress postAddress, FileAddress fileAddress, FileInput fileInput, string returnUri)
        {
            Post post = postService.GetPost(postAddress);

            if (post == null)
            {
                return(null);
            }

            File file = fileService.GetFile(post, fileAddress);

            if (file == null)
            {
                return(null);
            }

            return(saveFileToPost(postAddress, () => fileService.EditFile(post, file, fileInput), returnUri));
        }
示例#2
0
 public object EditFileOnPost(Post post, File file, FileInput fileInput, string returnUri)
 {
     return(saveFileToPost(post, () => blogsFileService.EditFile(post, file, fileInput), returnUri));
 }