コード例 #1
0
        public CondicionsController()
        {
            var container = new UnityContainer();

            container.RegisterType <ICondicionRepository, CondicionRepositorio>();
            container.RegisterType <ICondicionService, CondicionService>();


            container.RegisterType <ICondicionUtil, CondicionUtil>();

            iCondicionservice = container.Resolve <ICondicionService>();
        }
コード例 #2
0
 public CondicionController(ICondicionService _iCondicionService)
 {
     this.iCondicionService = _iCondicionService;
 }