Guest User

Untitled

a guest
Sep 20th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using Castle.MonoRail.Framework;
  6. using Demo.Domain;
  7. using Demo.Domain.Repositories;
  8. using Demo.Utils;
  9.  
  10. namespace Demo.WebApp.controllers
  11. {
  12. [Layout("blank")]
  13. [Filter(ExecuteWhen.BeforeAction, typeof(AuthenticationFilter), ExecutionOrder = 0)]
  14. public class BankController : BaseController
  15. {
  16. private readonly IBankRepository _bankRepo;
  17.  
  18. public BankController(IBankRepository bankRepo)
  19. {
  20. _bankRepo = bankRepo;
  21. }
  22.  
  23. public void Index()
  24. {
  25. var banks = _bankRepo.GetBankByDivisionCode('01');
  26. PropertyBag["banks"] = banks;
  27. }
  28. }
  29. }
Add Comment
Please, Sign In to add comment