public static IArea CreateArea(this IController controller, Enum id) { var area = new Area(AreaIdFactory.CreateIdFrom(id), controller); controller.AddArea(area); return(area); }
public static IArea GetArea(this IController controller, Enum id) { if (controller == null) { throw new ArgumentNullException(nameof(controller)); } return(controller.GetArea(AreaIdFactory.Create(id))); }
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); }