예제 #1
0
        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...");
            }
        }
예제 #2
0
 public crudMode setCrudModeInCache(crudMode crudModeToBeCached)
 {
     CachedCrudMode = crudModeToBeCached;
     return CachedCrudMode;
 }