public void CreateAndRemove(List <UsuarioEmpresaModel> create, List <int> remove) { areService = areService != null ? areService : new UsuarioEmpresa(); List <SAX_USUARIO_EMPRESA> modelA = Mapper.Map <List <UsuarioEmpresaModel>, List <SAX_USUARIO_EMPRESA> >(create); areService.CreateAndRemove(modelA, remove); }
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 UsuarioEmpresaService(IUsuarioEmpresa service) : this(new UsuarioEmpresa()) { areService = service; }