/// <summary> /// Create a new instance of FamRec controller /// </summary> /// <param name="service">Service dependency</param> /// <param name="serviceReceta">Service dependency</param> public FamRecController(IFamRecAppService service, IRecetaAppService serviceReceta) { if (service == null) { throw new ArgumentNullException("service", PresentationResources.exception_WithoutService); } if (serviceReceta == null) { throw new ArgumentNullException("serviceReceta", PresentationResources.exception_WithoutService); } //_unitOfWork = unitOfWork; _serviceFamRec = service; _serviceReceta = serviceReceta; }
/// <summary> /// Create a new instance of FamRec viewmodel /// </summary> /// <param name="service">Service dependency</param> /// <param name="serviceReceta">Service dependency</param> public FamRecFindViewModel(IFamRecAppService service, IRecetaAppService serviceReceta) : this() { if (service == null) { throw new ArgumentNullException("service", PresentationResources.exception_WithoutService); } if (serviceReceta == null) { throw new ArgumentNullException("serviceReceta", PresentationResources.exception_WithoutService); } _serviceFamRec = service; _serviceReceta = serviceReceta; BuildVm(); }
/// <summary> /// Create a new instance of Receta controller /// </summary> /// <param name="service">Service dependency</param> /// <param name="serviceFamRec">Service dependency</param> /// <param name="serviceRecProd">Service dependency</param> public RecetaController(IRecetaAppService service, IFamRecAppService serviceFamRec, IRecProdAppService serviceRecProd) { if (service == null) { throw new ArgumentNullException("service", PresentationResources.exception_WithoutService); } if (serviceFamRec == null) { throw new ArgumentNullException("serviceFamRec", PresentationResources.exception_WithoutService); } if (serviceRecProd == null) { throw new ArgumentNullException("serviceRecProd", PresentationResources.exception_WithoutService); } //_unitOfWork = unitOfWork; _serviceReceta = service; _serviceFamRec = serviceFamRec; _serviceRecProd = serviceRecProd; }
/// <summary> /// Create a new instance of RecProd controller /// </summary> /// <param name="service">Service dependency</param> /// <param name="serviceAlim">Service dependency</param> /// <param name="serviceReceta">Service dependency</param> public RecProdController(IRecProdAppService service, IAlimAppService serviceAlim, IRecetaAppService serviceReceta) { if (service == null) { throw new ArgumentNullException("service", PresentationResources.exception_WithoutService); } if (serviceAlim == null) { throw new ArgumentNullException("serviceAlim", PresentationResources.exception_WithoutService); } if (serviceReceta == null) { throw new ArgumentNullException("serviceReceta", PresentationResources.exception_WithoutService); } //_unitOfWork = unitOfWork; _serviceRecProd = service; _serviceAlim = serviceAlim; _serviceReceta = serviceReceta; }
/// <summary> /// Create a new instance of RecProd viewmodel /// </summary> /// <param name="service">Service dependency</param> /// <param name="serviceAlim">Service dependency</param> /// <param name="serviceReceta">Service dependency</param> public RecProdFindViewModel(IRecProdAppService service, IAlimAppService serviceAlim, IRecetaAppService serviceReceta) : this() { if (service == null) { throw new ArgumentNullException("service", PresentationResources.exception_WithoutService); } if (serviceAlim == null) { throw new ArgumentNullException("serviceAlim", PresentationResources.exception_WithoutService); } if (serviceReceta == null) { throw new ArgumentNullException("serviceReceta", PresentationResources.exception_WithoutService); } _serviceRecProd = service; _serviceAlim = serviceAlim; _serviceReceta = serviceReceta; BuildVm(); }
/// <summary> /// Create a new instance of Receta viewmodel /// </summary> /// <param name="service">Service dependency</param> /// <param name="serviceFamRec">Service dependency</param> /// <param name="serviceRecProd">Service dependency</param> public RecetaCrudViewModel(IRecetaAppService service, IFamRecAppService serviceFamRec, IRecProdAppService serviceRecProd) : this() { if (service == null) { throw new ArgumentNullException("service", PresentationResources.exception_WithoutService); } if (serviceFamRec == null) { throw new ArgumentNullException("serviceFamRec", PresentationResources.exception_WithoutService); } if (serviceRecProd == null) { throw new ArgumentNullException("serviceRecProd", PresentationResources.exception_WithoutService); } _serviceReceta = service; _serviceFamRec = serviceFamRec; _serviceRecProd = serviceRecProd; //BuildVm(); }