Exemplo n.º 1
0
        public void RemoveCategoryProperties(string categoryid, string propertyid)
        {
            CategoryProperty categoryProperty = _context.CategoryProperties.Where(x => x.CategoryId == categoryid && x.PropertyId == propertyid).FirstOrDefault();

            _context.CategoryProperties.Remove(categoryProperty);
            Save();
        }
Exemplo n.º 2
0
 public void AddCategoryProperties(CategoryProperty categoryProperty)
 {
     _context.CategoryProperties.Add(categoryProperty);
 }