/// <summary> /// Create a new instance of Rend controller /// </summary> /// <param name="service">Service dependency</param> /// <param name="serviceRendCant">Service dependency</param> public RendController(IRendAppService service, IRendCantAppService serviceRendCant) { if (service == null) { throw new ArgumentNullException("service", PresentationResources.exception_WithoutService); } if (serviceRendCant == null) { throw new ArgumentNullException("serviceRendCant", PresentationResources.exception_WithoutService); } //_unitOfWork = unitOfWork; _serviceRend = service; _serviceRendCant = serviceRendCant; }
/// <summary> /// Create a new instance of Rend viewmodel /// </summary> /// <param name="service">Service dependency</param> /// <param name="serviceRendCant">Service dependency</param> public RendCrudViewModel(IRendAppService service, IRendCantAppService serviceRendCant) : this() { if (service == null) { throw new ArgumentNullException("service", PresentationResources.exception_WithoutService); } if (serviceRendCant == null) { throw new ArgumentNullException("serviceRendCant", PresentationResources.exception_WithoutService); } _serviceRend = service; _serviceRendCant = serviceRendCant; BuildVm(); }
/// <summary> /// Create a new instance of RendCant viewmodel /// </summary> /// <param name="service">Service dependency</param> /// <param name="serviceAlim">Service dependency</param> /// <param name="serviceRend">Service dependency</param> public RendCantFindViewModel(IRendCantAppService service, IAlimAppService serviceAlim, IRendAppService serviceRend) : this() { if (service == null) { throw new ArgumentNullException("service", PresentationResources.exception_WithoutService); } if (serviceAlim == null) { throw new ArgumentNullException("serviceAlim", PresentationResources.exception_WithoutService); } if (serviceRend == null) { throw new ArgumentNullException("serviceRend", PresentationResources.exception_WithoutService); } _serviceRendCant = service; _serviceAlim = serviceAlim; _serviceRend = serviceRend; BuildVm(); }