/// <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(); }
/// <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; }
/// <summary> /// Create a new instance of Nt_Func controller /// </summary> /// <param name="service">Service dependency</param> /// <param name="serviceNutriente">Service dependency</param> public Nt_FuncController(INt_FuncAppService service, INutrienteAppService serviceNutriente) { if (service == null) { throw new ArgumentNullException("service", PresentationResources.exception_WithoutService); } if (serviceNutriente == null) { throw new ArgumentNullException("serviceNutriente", PresentationResources.exception_WithoutService); } //_unitOfWork = unitOfWork; _serviceNt_Func = service; _serviceNutriente = serviceNutriente; }
/// <summary> /// Create a new instance of Nt_Func viewmodel /// </summary> /// <param name="service">Service dependency</param> /// <param name="serviceNutriente">Service dependency</param> public Nt_FuncFindViewModel(INt_FuncAppService service, INutrienteAppService serviceNutriente) : this() { if (service == null) { throw new ArgumentNullException("service", PresentationResources.exception_WithoutService); } if (serviceNutriente == null) { throw new ArgumentNullException("serviceNutriente", PresentationResources.exception_WithoutService); } _serviceNt_Func = service; _serviceNutriente = serviceNutriente; BuildVm(); }