예제 #1
0
        public void CreateAndRemove(List <UsuarioAreaModel> create, List <int> remove)
        {
            areService = areService != null ? areService : new UsuarioArea();
            List <SAX_USUARIO_AREA> modelA = Mapper.Map <List <UsuarioAreaModel>, List <SAX_USUARIO_AREA> >(create);

            areService.CreateAndRemove(modelA, remove);
        }
예제 #2
0
 public Comprobante(IRepositoryContext repositoryContext, IComprobanteDetalle detalle, IPartidas partida, IUsuarioArea usuarioArea)
     : base(repositoryContext)
 {
     cdService          = detalle ?? new ComprobanteDetalle();
     parService         = partida ?? new Partidas();
     usuarioAreaService = usuarioArea ?? new UsuarioArea();
     parametroService   = parametroService ?? new Parametro();
     partidasService    = partidasService ?? new Partidas();
 }
예제 #3
0
 public Comprobante(IRepositoryContext repositoryContext)
     : base(repositoryContext)
 {
     cdService             = cdService ?? new ComprobanteDetalle();
     parService            = parService ?? new Partidas();
     usuarioAreaService    = usuarioAreaService ?? new UsuarioArea();
     parametroService      = parametroService ?? new Parametro();
     partidasService       = partidasService ?? new Partidas();
     usuarioEmpresaService = usuarioEmpresaService ?? new UsuarioEmpresa();
     empresaService        = empresaService ?? new Empresa();
 }
예제 #4
0
 public UsuarioAreaService(IUsuarioArea service)
     : this(new UsuarioArea())
 {
     areService = service;
 }