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)); }
public object AddFileToPost(Post post, FileInput fileInput, string returnUri) { return(saveFileToPost(post, () => blogsFileService.AddFile(post, fileInput), returnUri)); }