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

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

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