Closed alexbohomol closed 8 years ago
Agreeing the discussion (https://youtu.be/rtXpYpZdOzM) we should refactor the existing repository contract to smth like:
- Add(obj) - Remove(obj) - Get(id) - GetAll() - Find(predicate)
No 'Update' here (!)
var course = collection.Get(1); course.Name = "New Name";
bad!
collection.Update(course);
So the first but not least step here should be - get rid of the Update operation in contract
Agreeing the discussion (https://youtu.be/rtXpYpZdOzM) we should refactor the existing repository contract to smth like:
No 'Update' here (!)
bad!