/// <summary>
        /// Create a new instance of Nutriente viewmodel
        /// </summary>
        /// <param name="service">Service dependency</param>
        /// <param name="serviceNt_Cant">Service dependency</param>
        /// <param name="serviceNt_Func">Service dependency</param>
        /// <param name="serviceNt_Grp">Service dependency</param>
        public NutrienteFindViewModel(INutrienteAppService service, INt_CantAppService serviceNt_Cant, INt_FuncAppService serviceNt_Func, INt_GrpAppService serviceNt_Grp) : this()
        {
            if (service == null)
            {
                throw new ArgumentNullException("service", PresentationResources.exception_WithoutService);
            }
            if (serviceNt_Cant == null)
            {
                throw new ArgumentNullException("serviceNt_Cant", PresentationResources.exception_WithoutService);
            }
            if (serviceNt_Func == null)
            {
                throw new ArgumentNullException("serviceNt_Func", PresentationResources.exception_WithoutService);
            }
            if (serviceNt_Grp == null)
            {
                throw new ArgumentNullException("serviceNt_Grp", PresentationResources.exception_WithoutService);
            }

            _serviceNutriente = service;
            _serviceNt_Cant   = serviceNt_Cant;
            _serviceNt_Func   = serviceNt_Func;
            _serviceNt_Grp    = serviceNt_Grp;

            BuildVm();
        }
Exemple #2
0
        /// <summary>
        /// Create a new instance of Nutriente controller
        /// </summary>
        /// <param name="service">Service dependency</param>
        /// <param name="serviceNt_Cant">Service dependency</param>
        /// <param name="serviceNt_Func">Service dependency</param>
        /// <param name="serviceNt_Grp">Service dependency</param>
        public NutrienteController(INutrienteAppService service, INt_CantAppService serviceNt_Cant, INt_FuncAppService serviceNt_Func, INt_GrpAppService serviceNt_Grp)
        {
            if (service == null)
            {
                throw new ArgumentNullException("service", PresentationResources.exception_WithoutService);
            }
            if (serviceNt_Cant == null)
            {
                throw new ArgumentNullException("serviceNt_Cant", PresentationResources.exception_WithoutService);
            }
            if (serviceNt_Func == null)
            {
                throw new ArgumentNullException("serviceNt_Func", PresentationResources.exception_WithoutService);
            }
            if (serviceNt_Grp == null)
            {
                throw new ArgumentNullException("serviceNt_Grp", PresentationResources.exception_WithoutService);
            }

            //_unitOfWork = unitOfWork;
            _serviceNutriente = service;
            _serviceNt_Cant   = serviceNt_Cant;
            _serviceNt_Func   = serviceNt_Func;
            _serviceNt_Grp    = serviceNt_Grp;
        }
Exemple #3
0
        /// <summary>
        /// Create a new instance of Nt_Grp_Cant controller
        /// </summary>
        /// <param name="service">Service dependency</param>
        /// <param name="serviceNt_Grp">Service dependency</param>
        public Nt_Grp_CantController(INt_Grp_CantAppService service, INt_GrpAppService serviceNt_Grp)
        {
            if (service == null)
            {
                throw new ArgumentNullException("service", PresentationResources.exception_WithoutService);
            }
            if (serviceNt_Grp == null)
            {
                throw new ArgumentNullException("serviceNt_Grp", PresentationResources.exception_WithoutService);
            }

            //_unitOfWork = unitOfWork;
            _serviceNt_Grp_Cant = service;
            _serviceNt_Grp      = serviceNt_Grp;
        }
        /// <summary>
        /// Create a new instance of Nt_Grp_Cant viewmodel
        /// </summary>
        /// <param name="service">Service dependency</param>
        /// <param name="serviceNt_Grp">Service dependency</param>
        public Nt_Grp_CantCrudViewModel(INt_Grp_CantAppService service, INt_GrpAppService serviceNt_Grp) : this()
        {
            if (service == null)
            {
                throw new ArgumentNullException("service", PresentationResources.exception_WithoutService);
            }
            if (serviceNt_Grp == null)
            {
                throw new ArgumentNullException("serviceNt_Grp", PresentationResources.exception_WithoutService);
            }

            _serviceNt_Grp_Cant = service;
            _serviceNt_Grp      = serviceNt_Grp;

            BuildVm();
        }