code_junkie

Class will compile for Tests/Console but not in Asp.net application

Nov 11th, 2011
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. public interface IVisitorsLogController
  2. {
  3. List<VisitorsLog> GetVisitorsLog();
  4. int GetUniqueSubscribersCount();
  5. int GetVisitorsCount();
  6. string GetVisitorsSummary();
  7. }
  8.  
  9. private IVisitorsLogController ctl;
  10.  
  11. protected int GetUniqueMembersCount()
  12. {
  13. ctl = new VisitorsLogController();
  14. return ctl.GetUniqueSubscribersCount();
  15. }
  16.  
  17. protected static int GetVisitorsCount()
  18. {
  19. return VisitorsLogController.Instance.GetVisitorsCount(DateTime.Today);
  20. }
  21.  
  22. ctl = VisitorsLogController.Instance;
Add Comment
Please, Sign In to add comment