public AnimalSanctuaryController()
 {
     _image   = new ImageDBRepository();
     _animal  = new AnimalDBRepository();
     _sounds  = new SoundDBRepository();
     _profile = new ProfileDBRepository(System.Web.HttpContext.Current);
     _options = new OptionsDBRepository();
 }
示例#2
0
 public HomeController()
 {
     _brepo = new BlogDBRepository();
     _irepo = new InventoryRepository();
 }
示例#3
0
 public static List <Inventory> GetListByCategory(this IDataEntityRepository <Inventory> repo, Category category)
 {
     return(repo.GetList().Where(i => i.CategoryID.Equals(category.ID)).ToList());
 }
示例#4
0
 public static List <Inventory> GetListByName(this IDataEntityRepository <Inventory> repo, string str)
 {
     return(repo.GetList().Where(i => i.ProductName.ToUpper().Equals(str.ToUpper())).ToList());
 }
示例#5
0
 public static List <BlogPost> GetListByContent(this IDataEntityRepository <BlogPost> repo, string str)
 {
     return(repo.GetList().Where(b => b.Content.CaseInsensitiveContains(str) || b.Title.CaseInsensitiveContains(str)).ToList());
 }
 public ArtistController(IDataEntityRepository dataRepo, IDataAPIRepository apiRepo)
 {
     this._dataRepo = dataRepo;
     this._apiRepo  = apiRepo;
 }
示例#7
0
 public BlogController(IDataEntityRepository <BlogPost> repo)
 {
     _blog = new BlogDBRepository();
     //_blog = repo;
 }