Exemplo n.º 1
0
        /// <summary>
        /// Create a new instance of Imagenes controller
        /// </summary>
        /// <param name="service">Service dependency</param>
        /// <param name="serviceUserPhotos">Service dependency</param>
        public ImagenesController(IImagenesAppService service, IUserPhotosAppService serviceUserPhotos)
        {
            if (service == null)
            {
                throw new ArgumentNullException("service", PresentationResources.exception_WithoutService);
            }
            if (serviceUserPhotos == null)
            {
                throw new ArgumentNullException("serviceUserPhotos", PresentationResources.exception_WithoutService);
            }

            //_unitOfWork = unitOfWork;
            _serviceImagenes   = service;
            _serviceUserPhotos = serviceUserPhotos;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Create a new instance of Imagenes viewmodel
        /// </summary>
        /// <param name="service">Service dependency</param>
        /// <param name="serviceUserPhotos">Service dependency</param>
        public ImagenesFindViewModel(IImagenesAppService service, IUserPhotosAppService serviceUserPhotos) : this()
        {
            if (service == null)
            {
                throw new ArgumentNullException("service", PresentationResources.exception_WithoutService);
            }
            if (serviceUserPhotos == null)
            {
                throw new ArgumentNullException("serviceUserPhotos", PresentationResources.exception_WithoutService);
            }

            _serviceImagenes   = service;
            _serviceUserPhotos = serviceUserPhotos;

            BuildVm();
        }
Exemplo n.º 3
0
        /// <summary>
        /// Create a new instance of UserPhotos viewmodel
        /// </summary>
        /// <param name="service">Service dependency</param>
        /// <param name="serviceImagenes">Service dependency</param>
        /// <param name="serviceUsuario">Service dependency</param>
        public UserPhotosCrudViewModel(IUserPhotosAppService service, IImagenesAppService serviceImagenes, IUsuarioAppService serviceUsuario) : this()
        {
            if (service == null)
            {
                throw new ArgumentNullException("service", PresentationResources.exception_WithoutService);
            }
            if (serviceImagenes == null)
            {
                throw new ArgumentNullException("serviceImagenes", PresentationResources.exception_WithoutService);
            }
            if (serviceUsuario == null)
            {
                throw new ArgumentNullException("serviceUsuario", PresentationResources.exception_WithoutService);
            }

            _serviceUserPhotos = service;
            _serviceImagenes   = serviceImagenes;
            _serviceUsuario    = serviceUsuario;

            BuildVm();
        }