Static DataService class vs. IRepository<T> ?
- by msfanboy
Hello,
I am just studying the code of Sacha Barbers MVVM framework Chinch and I saw this in the xxxViewModel.cs file:
DataService.FetchAllOrders(CurrentCustomer.CustomerId.DataValue);
DataService is a Static class. Being a junior dev I am only used to Interfaces with Data services. Why is that class static?
Or do you think he made it just for the example?
So is that a good approach?