/// <summary> /// Create a new instance of Nt_Cant viewmodel /// </summary> /// <param name="service">Service dependency</param> /// <param name="serviceAlim">Service dependency</param> /// <param name="serviceNutriente">Service dependency</param> /// <param name="serviceNt_Fuente">Service dependency</param> public Nt_CantCrudViewModel(INt_CantAppService service, IAlimAppService serviceAlim, INutrienteAppService serviceNutriente, INt_FuenteAppService serviceNt_Fuente) : this() { if (service == null) { throw new ArgumentNullException("service", PresentationResources.exception_WithoutService); } if (serviceAlim == null) { throw new ArgumentNullException("serviceAlim", PresentationResources.exception_WithoutService); } if (serviceNutriente == null) { throw new ArgumentNullException("serviceNutriente", PresentationResources.exception_WithoutService); } if (serviceNt_Fuente == null) { throw new ArgumentNullException("serviceNt_Fuente", PresentationResources.exception_WithoutService); } _serviceNt_Cant = service; _serviceAlim = serviceAlim; _serviceNutriente = serviceNutriente; _serviceNt_Fuente = serviceNt_Fuente; BuildVm(); }
/// <summary> /// Create a new instance of Nt_Cant controller /// </summary> /// <param name="service">Service dependency</param> /// <param name="serviceAlim">Service dependency</param> /// <param name="serviceNutriente">Service dependency</param> /// <param name="serviceNt_Fuente">Service dependency</param> public Nt_CantController(INt_CantAppService service, IAlimAppService serviceAlim, INutrienteAppService serviceNutriente, INt_FuenteAppService serviceNt_Fuente) { if (service == null) { throw new ArgumentNullException("service", PresentationResources.exception_WithoutService); } if (serviceAlim == null) { throw new ArgumentNullException("serviceAlim", PresentationResources.exception_WithoutService); } if (serviceNutriente == null) { throw new ArgumentNullException("serviceNutriente", PresentationResources.exception_WithoutService); } if (serviceNt_Fuente == null) { throw new ArgumentNullException("serviceNt_Fuente", PresentationResources.exception_WithoutService); } //_unitOfWork = unitOfWork; _serviceNt_Cant = service; _serviceAlim = serviceAlim; _serviceNutriente = serviceNutriente; _serviceNt_Fuente = serviceNt_Fuente; }
/// <summary> /// Create a new instance of Nt_Fuente controller /// </summary> /// <param name="service">Service dependency</param> /// <param name="serviceNt_Cant">Service dependency</param> public Nt_FuenteController(INt_FuenteAppService service, INt_CantAppService serviceNt_Cant) { if (service == null) { throw new ArgumentNullException("service", PresentationResources.exception_WithoutService); } if (serviceNt_Cant == null) { throw new ArgumentNullException("serviceNt_Cant", PresentationResources.exception_WithoutService); } //_unitOfWork = unitOfWork; _serviceNt_Fuente = service; _serviceNt_Cant = serviceNt_Cant; }
/// <summary> /// Create a new instance of Nt_Fuente viewmodel /// </summary> /// <param name="service">Service dependency</param> /// <param name="serviceNt_Cant">Service dependency</param> public Nt_FuenteCrudViewModel(INt_FuenteAppService service, INt_CantAppService serviceNt_Cant) : this() { if (service == null) { throw new ArgumentNullException("service", PresentationResources.exception_WithoutService); } if (serviceNt_Cant == null) { throw new ArgumentNullException("serviceNt_Cant", PresentationResources.exception_WithoutService); } _serviceNt_Fuente = service; _serviceNt_Cant = serviceNt_Cant; BuildVm(); }