コード例 #1
0
        public static IArea CreateArea(this IController controller, Enum id)
        {
            var area = new Area(AreaIdFactory.CreateIdFrom(id), controller);

            controller.AddArea(area);

            return(area);
        }
コード例 #2
0
        public static IArea GetArea(this IController controller, Enum id)
        {
            if (controller == null)
            {
                throw new ArgumentNullException(nameof(controller));
            }

            return(controller.GetArea(AreaIdFactory.Create(id)));
        }
コード例 #3
0
        public static IArea CreateArea(this IController controller, Enum id)
        {
            if (controller == null)
            {
                throw new ArgumentNullException(nameof(controller));
            }

            var area = new Area(AreaIdFactory.Create(id), controller);

            controller.AddArea(area);

            return(area);
        }