public Cache(controller controller, view view, crudMode crudMode = crudMode.Stateless, BoatCatalog boatCatalog = null, MemberCatalog memberCatalog = null) { CachedController = controller; CachedView = view; CachedCrudMode = crudMode; CachedBoatCatalog = boatCatalog; CachedMemberCatalog = memberCatalog; if (boatCatalog == null) { throw new ApplicationException("Where´s boatcatalog? Nothing to use in the Constructor..."); } if (memberCatalog == null) { throw new ApplicationException("Where´s boatcatalog? Nothing to use in the Constructor..."); } }
public crudMode setCrudModeInCache(crudMode crudModeToBeCached) { CachedCrudMode = crudModeToBeCached; return CachedCrudMode; }