Esempio n. 1
0
 static partial void CreateController <C>(IContext context, ref IControllerAccess <C> controller) where C : IIdentifiable
 {
     if (typeof(C) == typeof(CashCow.Contracts.Persistence.CashCow.ICashEvent))
     {
         controller = new Controllers.Persistance.CashEventController(context) as IControllerAccess <C>;
     }
 }
Esempio n. 2
0
        static partial void CreateController <C>(ControllerObject controllerObject, ref IControllerAccess <C> controller) where C : IIdentifiable
        {
            controllerObject.CheckArgument(nameof(controllerObject));

            if (typeof(C) == typeof(CashCow.Contracts.Persistence.CashCow.ICashEvent))
            {
                controller = new Controllers.Persistance.CashEventController(controllerObject) as IControllerAccess <C>;
            }
        }