/// <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(); }
/// <summary> /// Create a new instance of Nt_Grp viewmodel /// </summary> /// <param name="service">Service dependency</param> /// <param name="serviceNt_Grp_Cant">Service dependency</param> /// <param name="serviceNutriente">Service dependency</param> public Nt_GrpFindViewModel(INt_GrpAppService service, INt_Grp_CantAppService serviceNt_Grp_Cant, INutrienteAppService serviceNutriente) : this() { if (service == null) { throw new ArgumentNullException("service", PresentationResources.exception_WithoutService); } if (serviceNt_Grp_Cant == null) { throw new ArgumentNullException("serviceNt_Grp_Cant", PresentationResources.exception_WithoutService); } if (serviceNutriente == null) { throw new ArgumentNullException("serviceNutriente", PresentationResources.exception_WithoutService); } _serviceNt_Grp = service; _serviceNt_Grp_Cant = serviceNt_Grp_Cant; _serviceNutriente = serviceNutriente; BuildVm(); }