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(); }
public void AddCategoryProperties(CategoryProperty categoryProperty) { _context.CategoryProperties.Add(categoryProperty); }