Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public AController(
- ILogger logger,
- IabcRepository abcRepo,
- IFileService<FileTypeA> fileTypeAService,
- IFileService<FileTypeB> fileTypeBService,
- IFileService<FileTypeC> fileTypeCService,
- IPrintService printFileService,
- ....
- )
- public ActionResult SendFileA(int id)
- {
- _fileTypeAService.SendFile(id);
- _abcRepo.Update(id)
- _logger.Log("log message");
- }
- public ActionResult SendFileB(id)
- {
- _fileTypeBService.SendFile(id);
- _abcRepo.Update(id)
- _logger.Log("log message");
- }
- public ActionResult SendFileC(int id)
- {
- _fileTypeCService.SendFile(id);
- _abcRepo.Update(id)
- _logger.Log("log message");
- }
- public ActionResult PrintFileC(int id)
- {
- _printFileService.PrintFile(id);
- _abcRepo.Update(id)
- _logger.Log("log message");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement