Exemplo n.º 1
0
        //public static IMapper Mapper {get; private set;}

        #endregion

        #region Constructor

        /// <summary>
        /// Create a new instance of Imagenes application service
        /// </summary>
        /// <param name="repository">Repository dependency</param>
        public ImagenesAppService(IImagenesRepository repository)
        {
            if (repository == null)
            {
                throw new ArgumentNullException("repository", ApplicationResources.exception_WithoutRepository);
            }
            _repositoryImagenes = repository;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Create a new instance of Imagenes application service
        /// </summary>
        /// <param name="repository">Repository dependency</param>
        /// <param name="uow">IUnitOfWorkAsync dependency</param>
        public ImagenesAppService(IImagenesRepository repository, IUnitOfWorkAsync uow)
        {
            if (repository == null)
            {
                throw new ArgumentNullException("repository", ApplicationResources.exception_WithoutRepository);
            }
            _repositoryImagenes = repository;

            if (uow == null)
            {
                throw new ArgumentNullException("uow", ApplicationResources.exception_WithoutRepository);
            }
            _unitOfWorkAsync = uow;
        }
Exemplo n.º 3
0
 public ImagesController(IImagenesRepository ir)
 {
     this.ir = ir;
 }
Exemplo n.º 4
0
 public GeoController(IGeoRepository geoRepository, IUsuarioRepository usuarioRepository, IClienteRepository clienteRepository, IFiltroRepository filtroRepository, ICommonRepository commonRepository, ITableroRepository tableroRepository, IImagenesRepository imagenesRepository)
 {
     IdModulo                = 4;
     this.geoRepository      = geoRepository;
     this.usuarioRepository  = usuarioRepository;
     this.clienteRepository  = clienteRepository;
     this.filtroRepository   = filtroRepository;
     this.commonRepository   = commonRepository;
     this.tableroRepository  = tableroRepository;
     this.imagenesRepository = imagenesRepository;
 }
Exemplo n.º 5
0
 public ImagenesController(IClienteRepository clienteRepository, IUsuarioRepository usuarioRepository, IImagenesRepository imagenesRepository, IFiltroRepository filtroRepository, ICommonRepository commonRepository)
 {
     IdModulo = 3;
     this.clienteRepository  = clienteRepository;
     this.usuarioRepository  = usuarioRepository;
     this.imagenesRepository = imagenesRepository;
     this.filtroRepository   = filtroRepository;
     this.commonRepository   = commonRepository;
 }