public void Remove(int id) { var deletedCategory = _categoryDal.GetByDefault(x => x.Id == id); _categoryDal.Remove(deletedCategory); }