예제 #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;
        }
예제 #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;
        }
예제 #3
0
 public ImagesController(IImagenesRepository ir)
 {
     this.ir = ir;
 }
예제 #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;
 }
예제 #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;
 }