/// <summary> /// Create a new instance of Desecho controller /// </summary> /// <param name="service">Service dependency</param> /// <param name="serviceDesCant">Service dependency</param> public DesechoController(IDesechoAppService service, IDesCantAppService serviceDesCant) { if (service == null) { throw new ArgumentNullException("service", PresentationResources.exception_WithoutService); } if (serviceDesCant == null) { throw new ArgumentNullException("serviceDesCant", PresentationResources.exception_WithoutService); } //_unitOfWork = unitOfWork; _serviceDesecho = service; _serviceDesCant = serviceDesCant; }
/// <summary> /// Create a new instance of Desecho viewmodel /// </summary> /// <param name="service">Service dependency</param> /// <param name="serviceDesCant">Service dependency</param> public DesechoFindViewModel(IDesechoAppService service, IDesCantAppService serviceDesCant) : this() { if (service == null) { throw new ArgumentNullException("service", PresentationResources.exception_WithoutService); } if (serviceDesCant == null) { throw new ArgumentNullException("serviceDesCant", PresentationResources.exception_WithoutService); } _serviceDesecho = service; _serviceDesCant = serviceDesCant; BuildVm(); }
/// <summary> /// Create a new instance of DesCant viewmodel /// </summary> /// <param name="service">Service dependency</param> /// <param name="serviceAlim">Service dependency</param> /// <param name="serviceDesecho">Service dependency</param> public DesCantCrudViewModel(IDesCantAppService service, IAlimAppService serviceAlim, IDesechoAppService serviceDesecho) : this() { if (service == null) { throw new ArgumentNullException("service", PresentationResources.exception_WithoutService); } if (serviceAlim == null) { throw new ArgumentNullException("serviceAlim", PresentationResources.exception_WithoutService); } if (serviceDesecho == null) { throw new ArgumentNullException("serviceDesecho", PresentationResources.exception_WithoutService); } _serviceDesCant = service; _serviceAlim = serviceAlim; _serviceDesecho = serviceDesecho; BuildVm(); }