public AnimalSanctuaryController() { _image = new ImageDBRepository(); _animal = new AnimalDBRepository(); _sounds = new SoundDBRepository(); _profile = new ProfileDBRepository(System.Web.HttpContext.Current); _options = new OptionsDBRepository(); }
public HomeController() { _brepo = new BlogDBRepository(); _irepo = new InventoryRepository(); }
public static List <Inventory> GetListByCategory(this IDataEntityRepository <Inventory> repo, Category category) { return(repo.GetList().Where(i => i.CategoryID.Equals(category.ID)).ToList()); }
public static List <Inventory> GetListByName(this IDataEntityRepository <Inventory> repo, string str) { return(repo.GetList().Where(i => i.ProductName.ToUpper().Equals(str.ToUpper())).ToList()); }
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; }
public BlogController(IDataEntityRepository <BlogPost> repo) { _blog = new BlogDBRepository(); //_blog = repo; }