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); }
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(); }
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(); }
public UsuarioAreaService(IUsuarioArea service) : this(new UsuarioArea()) { areService = service; }