Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. public AController(
  2. ILogger logger,
  3. IabcRepository abcRepo,
  4. IFileService<FileTypeA> fileTypeAService,
  5. IFileService<FileTypeB> fileTypeBService,
  6. IFileService<FileTypeC> fileTypeCService,
  7. IPrintService printFileService,
  8. ....
  9. )
  10.  
  11. public ActionResult SendFileA(int id)
  12. {
  13. _fileTypeAService.SendFile(id);
  14. _abcRepo.Update(id)
  15. _logger.Log("log message");
  16. }
  17.  
  18. public ActionResult SendFileB(id)
  19. {
  20. _fileTypeBService.SendFile(id);
  21. _abcRepo.Update(id)
  22. _logger.Log("log message");
  23. }
  24.  
  25. public ActionResult SendFileC(int id)
  26. {
  27. _fileTypeCService.SendFile(id);
  28. _abcRepo.Update(id)
  29. _logger.Log("log message");
  30. }
  31.  
  32. public ActionResult PrintFileC(int id)
  33. {
  34. _printFileService.PrintFile(id);
  35. _abcRepo.Update(id)
  36. _logger.Log("log message");
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement