Example #1
0
        public void Delete([FromRoute]int id)
        {
            ThemeServices services = new ThemeServices(Dao);

            services.Delete(id);
        }
Example #2
0
        public void Post([FromBody] Theme theme)
        {
            ThemeServices services = new ThemeServices(Dao);

            services.Edit(theme);
        }
Example #3
0
        public IEnumerable<Theme> GetParents([FromRoute]int Id)
        {
            ThemeServices services = new ThemeServices(Dao);

            return services.GetParents(Id);
        }
Example #4
0
        public IEnumerable<Theme> GetSubThemeWithId([FromRoute] int Id)
        {
            ThemeServices services = new ThemeServices(Dao);

            return services.GetAll().Where(e => e.ParentId.Equals(Id)).ToArray();
        }
Example #5
0
        public Theme GetWithId([FromRoute] int Id)
        {
            ThemeServices services = new ThemeServices(Dao);

            return services.GetAll().Where(e => e.Id.Equals(Id)).FirstOrDefault();
        }
Example #6
0
        public IEnumerable<Theme> Get()
        {
            ThemeServices services = new ThemeServices(Dao);

            return services.GetAll().ToArray();
        }